/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from urlparse import urlsplit
22
22
import xmlrpclib
23
23
 
24
 
from breezy import (
 
24
from ... import (
25
25
    debug,
26
26
    errors,
27
27
    trace,
28
28
    transport,
29
29
    )
30
 
from breezy.i18n import gettext
 
30
from ...i18n import gettext
31
31
 
32
 
from breezy.plugins.launchpad.lp_registration import (
 
32
from .lp_registration import (
33
33
    LaunchpadService, ResolveLaunchpadPathRequest)
34
 
from breezy.plugins.launchpad.account import get_lp_login
 
34
from .account import get_lp_login
35
35
 
36
36
 
37
37
# As breezy.transport.remote may not be loaded yet, make sure bzr+ssh
98
98
        resolve = _request_factory(path)
99
99
        try:
100
100
            result = resolve.submit(service)
101
 
        except xmlrpclib.Fault, fault:
 
101
        except xmlrpclib.Fault as fault:
102
102
            raise errors.InvalidURL(
103
103
                path=url, extra=fault.faultString)
104
104
        return result