From 885840ecb43dc468807de6602c23fd33d97d1025 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 19 Feb 2015 14:13:06 +0100 Subject: Handle renamed urlparse in Python3 to work towards Python3 support Gbp-Dch: Ignore --- gbp/scripts/create_remote_repo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gbp') diff --git a/gbp/scripts/create_remote_repo.py b/gbp/scripts/create_remote_repo.py index 73bd270..1b0d65b 100644 --- a/gbp/scripts/create_remote_repo.py +++ b/gbp/scripts/create_remote_repo.py @@ -23,7 +23,7 @@ from __future__ import print_function from six.moves import configparser import sys import os, os.path -import urlparse +from six.moves import urllib import subprocess import tty, termios import re @@ -108,7 +108,7 @@ def parse_url(remote_url, name, pkg, template_dir=None): ... GbpError: URL contains invalid ~username expansion. """ - frags = urlparse.urlparse(remote_url) + frags = urllib.parse.urlparse(remote_url) if frags.scheme in ['ssh', 'git+ssh', '']: scheme = frags.scheme else: -- cgit v1.2.3