From cd51f17c643370e6199216462c1be36f04d57291 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Thu, 6 Jun 2013 19:06:16 +0900 Subject: [PATCH] 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 --- manifest_xml.py | 2 +- 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: import imp import urlparse urllib = imp.new_module('urllib') - urllib.parse = urlparse + urllib.parse = urlparse.urlparse from git_config import GitConfig 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: import urlparse import xmlrpclib urllib = imp.new_module('urllib') - urllib.parse = urlparse + urllib.parse = urlparse.urlparse xmlrpc = imp.new_module('xmlrpc') xmlrpc.client = xmlrpclib