~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

Merge bound branch test performance improvements.

Show diffs side-by-side

added added

removed removed

Lines of Context:
190
190
# X seconds. But that requires a lot more fanciness.
191
191
_connected_hosts = weakref.WeakValueDictionary()
192
192
 
 
193
def clear_connection_cache():
 
194
    """Remove all hosts from the SFTP connection cache.
 
195
 
 
196
    Primarily useful for test cases wanting to force garbage collection.
 
197
    """
 
198
    _connected_hosts.clear()
 
199
 
193
200
 
194
201
def load_host_keys():
195
202
    """