~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-01-27 17:05:13 UTC
  • mfrom: (5634.1.1 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20110127170513-w1gozoytzqeerfbd
(vila) Merge 2.3 into trunk (Vincent Ladeuil)

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: