~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/lp_directory.py

  • Committer: Patch Queue Manager
  • Date: 2015-12-17 18:39:00 UTC
  • mfrom: (6606.1.2 fix-float)
  • Revision ID: pqm@pqm.ubuntu.com-20151217183900-0719du2uv1kwu3lc
(vila) Inline testtools private method to fix an issue in xenial (the
 private implementation has changed in an backward incompatible way).
 (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
 
18
17
"""Directory lookup that uses Launchpad."""
19
18
 
 
19
from __future__ import absolute_import
 
20
 
20
21
from urlparse import urlsplit
21
22
import xmlrpclib
22
23
 
131
132
            else:
132
133
                # There are either 0 or > 2 path parts, neither of which is
133
134
                # supported for these schemes.
134
 
                raise errors.InvalidURL('Bad path: %s' % result.path)
 
135
                raise errors.InvalidURL('Bad path: %s' % url)
135
136
            # Expand any series shortcuts, but keep unknown series.
136
137
            series = distro_series.get(series, series)
137
138
            # Hack the url and let the following do the final resolution.