summaryrefslogtreecommitdiff
path: root/gbp
diff options
context:
space:
mode:
Diffstat (limited to 'gbp')
-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 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: