aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-02-19 14:13:06 +0100
committerGuido Günther <agx@sigxcpu.org>2015-02-20 13:04:08 +0100
commit885840ecb43dc468807de6602c23fd33d97d1025 (patch)
treea186b0fae42d548dfe9128b7caf40514dbc4bb90
parent2816c80e27f08ff715ac8f8ef4b77dc678fc606a (diff)
Handle renamed urlparse in Python3
to work towards Python3 support Gbp-Dch: Ignore
-rw-r--r--gbp/scripts/create_remote_repo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/scripts/create_remote_repo.py b/gbp/scripts/create_remote_repo.py
index 73bd2702..1b0d65b1 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: