/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-25 02:35:12 UTC
  • Revision ID: jelmer@jelmer.uk-20190125023512-8sk1scd4r61f69u1
Fix default launchpadlib API URL.

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
25
26
import webbrowser
26
27
 
27
28
from breezy import (
68
69
        """
69
70
        self.tree = tree
70
71
        if staging:
71
 
            lp_base_url = lp_api.STAGING_SERVICE_ROOT
 
72
            lp_base_url = uris.STAGING_SERVICE_ROOT
72
73
        else:
73
 
            lp_base_url = None
74
 
        self.launchpad = lp_api.connect_launchpad(lp_bsae_url)
 
74
            lp_base_url = uris.LPNET_SERVICE_ROOT
 
75
        self.launchpad = lp_api.connect_launchpad(lp_base_url)
75
76
        self.source_branch = lp_api.LaunchpadBranch.from_bzr(
76
77
            self.launchpad, source_branch)
77
78
        if target_branch is None: