/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-01-28 22:51:17 UTC
  • mfrom: (7254.1.2 lp-imports)
  • Revision ID: breezy.the.bot@gmail.com-20190128225117-pwtq0jjseq9pdn0e
Delay importing launchpadlib, so brz works for users without it.

Merged from https://code.launchpad.net/~jelmer/brz/lp-imports/+merge/362354

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)