/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 bzrlib/plugins/launchpad/lp_api.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-01-25 09:18:48 UTC
  • mfrom: (5630.1.2 706835-lp-uris)
  • Revision ID: pqm@pqm.ubuntu.com-20110125091848-0bdpzjixaotg1320
(vila) Restore compatibility with older launchpadlib. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    STAGING_SERVICE_ROOT,
48
48
    Launchpad,
49
49
    )
50
 
from launchpadlib import uris
 
50
try:
 
51
    from launchpadlib import uris
 
52
except ImportError:
 
53
    # Create a minimal object so the getattr() calls below fail gently and
 
54
    # provide default values
 
55
    uris = object()
51
56
 
52
57
LPNET_SERVICE_ROOT = getattr(uris, 'LPNET_SERVICE_ROOT',
53
58
                             'https://api.launchpad.net/beta/')