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 /subcmds | |
| 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
Diffstat (limited to 'subcmds')
| -rw-r--r-- | subcmds/sync.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 | ||
