diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-06-06 19:06:16 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-06-08 14:50:41 +0900 |
commit | cd51f17c643370e6199216462c1be36f04d57291 (patch) | |
tree | 8ab1624ac46d6adbac6ca3c25d3d716aff251776 | |
parent | c2791e85f322bb7d5007ee7e673134d5fa2ed662 (diff) | |
download | git-repo-cd51f17c643370e6199216462c1be36f04d57291.tar.gz |
Fix "'module' object is not callable" error
In a couple of files the urlparse method was not being set up
correctly for python < 3 and this resulted in an error being
thrown when trying to call it.
Change-Id: I4d2040ac77101e4e228ee225862f365ae3d96cec
-rw-r--r-- | manifest_xml.py | 2 | ||||
-rw-r--r-- | subcmds/sync.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/manifest_xml.py b/manifest_xml.py index 817a1c80..b6f75477 100644 --- a/manifest_xml.py +++ b/manifest_xml.py | |||
@@ -27,7 +27,7 @@ else: | |||
27 | import imp | 27 | import imp |
28 | import urlparse | 28 | import urlparse |
29 | urllib = imp.new_module('urllib') | 29 | urllib = imp.new_module('urllib') |
30 | urllib.parse = urlparse | 30 | urllib.parse = urlparse.urlparse |
31 | 31 | ||
32 | from git_config import GitConfig | 32 | from git_config import GitConfig |
33 | from git_refs import R_HEADS, HEAD | 33 | from git_refs import R_HEADS, HEAD |
diff --git a/subcmds/sync.py b/subcmds/sync.py index b34787d2..92d295dd 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 | 37 | urllib.parse = urlparse.urlparse |
38 | xmlrpc = imp.new_module('xmlrpc') | 38 | xmlrpc = imp.new_module('xmlrpc') |
39 | xmlrpc.client = xmlrpclib | 39 | xmlrpc.client = xmlrpclib |
40 | 40 | ||