/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_propose.py

  • Committer: Jelmer Vernooij
  • Date: 2019-01-28 21:00:58 UTC
  • mto: This revision was merged to the branch mainline in revision 7255.
  • Revision ID: jelmer@jelmer.uk-20190128210058-o8rvkfsw9v421byf
Defer imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    )
23
23
from ...lazy_import import lazy_import
24
24
lazy_import(globals(), """
25
 
from launchpadlib import uris
26
25
import webbrowser
27
26
 
28
27
from breezy import (
69
68
        """
70
69
        self.tree = tree
71
70
        if staging:
72
 
            lp_base_url = uris.STAGING_SERVICE_ROOT
 
71
            lp_base_url = lp_api.uris.STAGING_SERVICE_ROOT
73
72
        else:
74
 
            lp_base_url = uris.LPNET_SERVICE_ROOT
 
73
            lp_base_url = lp_api.uris.LPNET_SERVICE_ROOT
75
74
        self.launchpad = lp_api.connect_launchpad(lp_base_url)
76
75
        self.source_branch = lp_api.LaunchpadBranch.from_bzr(
77
76
            self.launchpad, source_branch)