From 7993f3cdda0c66d97aae5c4570921130023e6048 Mon Sep 17 00:00:00 2001 From: Anthony King Date: Wed, 3 Jun 2015 17:21:56 +0100 Subject: [PATCH] init: don't call urllib.parse it's actually urllib.parse.urlparse Change-Id: Ie3532e54625e887c8682d92b932ea21a629e8d60 --- subcmds/init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subcmds/init.py b/subcmds/init.py index b73de71..dbb6ddd 100644 --- a/subcmds/init.py +++ b/subcmds/init.py @@ -27,7 +27,7 @@ else: import imp import urlparse urllib = imp.new_module('urllib') - urllib.parse = urlparse.urlparse + urllib.parse = urlparse from color import Coloring from command import InteractiveCommand, MirrorSafeCommand @@ -153,7 +153,7 @@ to update the working directory files. # server where this git is located, so let's save that here. mirrored_manifest_git = None if opt.reference: - manifest_git_path = urllib.parse(opt.manifest_url).path[1:] + manifest_git_path = urllib.parse.urlparse(opt.manifest_url).path[1:] mirrored_manifest_git = os.path.join(opt.reference, manifest_git_path) if not mirrored_manifest_git.endswith(".git"): mirrored_manifest_git += ".git"