~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http.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:
221
221
        :return: A lock object, which should be passed to Transport.unlock()
222
222
        """
223
223
        raise TransportNotPossible('http does not support lock_write()')
224
 
 
225
 
register_transport('http://', HttpTransport)
226
 
register_transport('https://', HttpTransport)