Old scripts tend to use launchpad.EDGE_SERVICE_ROOT and launchpad.STAGING_SERVICE_ROOT. These constants are deprecated. Currently they are imported into launchpadlib.launchpad from launchpadlib.uris.
from launchpad.uris import EDGE_SERVICE_ROOT, STAGING_SERVICE_ROOT
Since the whole point of maintaining these constants is to stop old scripts from breaking, we could tack on a hard-coded version number ('1.0', _not_ 'beta').
from launchpad.uris import EDGE_SERVICE_ROOT as _EDGE, STAGING_SERVICE_ROOT as _STAGING
EDGE_SERVICE_ROOT = _EDGE + "1.0"
STAGING_SERVICE_ROOT = _STAGING + "1.0"
This doesn't change the basic facts that 1) load() should be made to support relative URIs and 2) scripts should not be using these constants.
Old scripts tend to use launchpad. EDGE_SERVICE_ ROOT and launchpad. STAGING_ SERVICE_ ROOT. These constants are deprecated. Currently they are imported into launchpadlib. launchpad from launchpadlib.uris.
from launchpad.uris import EDGE_SERVICE_ROOT, STAGING_ SERVICE_ ROOT
Since the whole point of maintaining these constants is to stop old scripts from breaking, we could tack on a hard-coded version number ('1.0', _not_ 'beta').
from launchpad.uris import EDGE_SERVICE_ROOT as _EDGE, STAGING_ SERVICE_ ROOT as _STAGING SERVICE_ ROOT = _STAGING + "1.0"
EDGE_SERVICE_ROOT = _EDGE + "1.0"
STAGING_
This doesn't change the basic facts that 1) load() should be made to support relative URIs and 2) scripts should not be using these constants.