~pqm-dev/pqm/trunk

« back to all changes in this revision

Viewing changes to pqm/queue/lp.py

  • Committer: Robert Collins
  • Date: 2010-04-19 00:49:22 UTC
  • Revision ID: robertc@robertcollins.net-20100419004922-faqjcu9nrsod104c
Work with launchpadlib 1.5.1, hopefully.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
try:
31
31
    import launchpadlib.credentials
32
32
    import launchpadlib.launchpad
33
 
    lp_service_root = os.environ.get('LAUNCHPAD_API', launchpadlib.uris.EDGE_SERVICE_ROOT)
 
33
    try:
 
34
        from launchpadlib.uris import EDGE_SERVICE_ROOT
 
35
    except ImportError:
 
36
        EDGE_SERVICE_ROOT = launchpadlib.launchpad.EDGE_SERVICE_ROOT
 
37
    lp_service_root = os.environ.get('LAUNCHPAD_API', EDGE_SERVICE_ROOT)
34
38
except ImportError:
35
39
    launchpadlib = None
36
40