diff --git a/manifest_xml.py b/manifest_xml.py index b6f75477..817a1c80 100644 --- a/manifest_xml.py +++ b/manifest_xml.py @@ -27,7 +27,7 @@ else: import imp import urlparse urllib = imp.new_module('urllib') - urllib.parse = urlparse.urlparse + urllib.parse = urlparse from git_config import GitConfig from git_refs import R_HEADS, HEAD diff --git a/subcmds/sync.py b/subcmds/sync.py index 930211c1..c7f02b35 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -34,7 +34,7 @@ else: import urlparse import xmlrpclib urllib = imp.new_module('urllib') - urllib.parse = urlparse.urlparse + urllib.parse = urlparse xmlrpc = imp.new_module('xmlrpc') xmlrpc.client = xmlrpclib @@ -509,7 +509,7 @@ later is required to fix a server side protocol bug. file=sys.stderr) else: try: - parse_result = urllib.parse(manifest_server) + parse_result = urllib.parse.urlparse(manifest_server) if parse_result.hostname: username, _account, password = \ info.authenticators(parse_result.hostname)