~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

Load transports when they're first used.

- cleans up startup code
- plugins can import modules like paramiko that won't be present, 
  and just fail if they're not loaded
- possibly faster at startup

Show diffs side-by-side

added added

removed removed

Lines of Context:
243
243
    def __del__(self):
244
244
        shutil.rmtree(self.base, ignore_errors=True)
245
245
        mutter("%r destroyed" % self)
246
 
 
247
 
# If nothing else matches, try the LocalTransport
248
 
register_transport(None, LocalTransport)
249
 
register_transport('file://', LocalTransport)