~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_sftp_transport.py

  • Committer: Andrew Bennetts
  • Date: 2011-05-09 02:33:16 UTC
  • mfrom: (5838 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5839.
  • Revision ID: andrew.bennetts@canonical.com-20110509023316-v1n4di9dh5lx5icj
MergeĀ 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