~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/lp_directory.py

  • Committer: Martin
  • Date: 2011-01-26 19:34:58 UTC
  • mto: (5609.10.1 2.3b5-dev)
  • mto: This revision was merged to the branch mainline in revision 5635.
  • Revision ID: gzlist@googlemail.com-20110126193458-o6mwxaymyinlzqjo
Blindly change all users of get_transport to address the function via the transport module

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    debug,
25
25
    errors,
26
26
    trace,
27
 
    )
28
 
from bzrlib.transport import (
29
 
    get_transport,
30
 
    register_urlparse_netloc_protocol,
 
27
    transport,
31
28
    )
32
29
 
33
30
from bzrlib.plugins.launchpad.lp_registration import (
37
34
 
38
35
# As bzrlib.transport.remote may not be loaded yet, make sure bzr+ssh
39
36
# is counted as a netloc protocol.
40
 
register_urlparse_netloc_protocol('bzr+ssh')
41
 
register_urlparse_netloc_protocol('lp')
 
37
transport.register_urlparse_netloc_protocol('bzr+ssh')
 
38
transport.register_urlparse_netloc_protocol('lp')
42
39
 
43
40
_ubuntu_series_shortcuts = {
44
41
    'n': 'natty',
147
144
            else:
148
145
                # Use the URL if we can create a transport for it.
149
146
                try:
150
 
                    get_transport(url)
 
147
                    transport.get_transport(url)
151
148
                except (errors.PathError, errors.TransportError):
152
149
                    pass
153
150
                else: