Merge "sync: assign manifest_name earlier"
diff --git a/manifest_xml.py b/manifest_xml.py
index b6f7547..817a1c8 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -27,7 +27,7 @@
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 ff0cf3a..002d05f 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -34,7 +34,7 @@
import urlparse
import xmlrpclib
urllib = imp.new_module('urllib')
- urllib.parse = urlparse.urlparse
+ urllib.parse = urlparse
xmlrpc = imp.new_module('xmlrpc')
xmlrpc.client = xmlrpclib
@@ -511,7 +511,7 @@
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)