~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_sftp_transport.py

(gz) Bug #656170, be more aggressive about closing file handles (Martin [gz])

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