~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_sftp_transport.py

  • Committer: INADA Naoki
  • Date: 2011-05-17 00:45:09 UTC
  • mfrom: (5875 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5891.
  • Revision ID: songofacandy@gmail.com-20110517004509-q58negjbdjh7t6u1
mergeĀ fromĀ lp:bzr

Show diffs side-by-side

added added

removed removed

Lines of Context:
417
417
 
418
418
 
419
419
class ReadvFile(object):
420
 
    """An object that acts like Paramiko's SFTPFile.readv()"""
 
420
    """An object that acts like Paramiko's SFTPFile when readv() is used"""
421
421
 
422
422
    def __init__(self, data):
423
423
        self._data = data
426
426
        for start, length in requests:
427
427
            yield self._data[start:start+length]
428
428
 
 
429
    def close(self):
 
430
        pass
 
431
 
429
432
 
430
433
def _null_report_activity(*a, **k):
431
434
    pass