diff options
Diffstat (limited to 'subcmds')
-rw-r--r-- | subcmds/sync.py | 4 |
1 files changed, 2 insertions, 2 deletions
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: | |||
34 | import urlparse | 34 | import urlparse |
35 | import xmlrpclib | 35 | import xmlrpclib |
36 | urllib = imp.new_module('urllib') | 36 | urllib = imp.new_module('urllib') |
37 | urllib.parse = urlparse.urlparse | 37 | urllib.parse = urlparse |
38 | xmlrpc = imp.new_module('xmlrpc') | 38 | xmlrpc = imp.new_module('xmlrpc') |
39 | xmlrpc.client = xmlrpclib | 39 | xmlrpc.client = xmlrpclib |
40 | 40 | ||
@@ -509,7 +509,7 @@ later is required to fix a server side protocol bug. | |||
509 | file=sys.stderr) | 509 | file=sys.stderr) |
510 | else: | 510 | else: |
511 | try: | 511 | try: |
512 | parse_result = urllib.parse(manifest_server) | 512 | parse_result = urllib.parse.urlparse(manifest_server) |
513 | if parse_result.hostname: | 513 | if parse_result.hostname: |
514 | username, _account, password = \ | 514 | username, _account, password = \ |
515 | info.authenticators(parse_result.hostname) | 515 | info.authenticators(parse_result.hostname) |