From db2ad9dfce438dae14fed0a62b37f0028ee98ad1 Mon Sep 17 00:00:00 2001 From: Chirayu Desai Date: Tue, 11 Jun 2013 13:42:25 +0530 Subject: Fix urllib.parse (urlparse) handling Revert "Fix "'module' object is not callable" error", and fix it properly. * The urlparse module is renamed to urllib.parse in Python 3. * This commit fixes the code to use "urllib.parse.urlparse" instead of creating a new module urlib and setting urlib.parse to urlparse.urlparse. * Fixes an AttributeError: 'function' object has no attribute 'uses_relative' This reverts commit cd51f17c643370e6199216462c1be36f04d57291. Change-Id: I48490b20ecd19cf5a6edd835506ea5a467d556ac --- manifest_xml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'manifest_xml.py') diff --git a/manifest_xml.py b/manifest_xml.py index b6f75477..817a1c80 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.urlparse + urllib.parse = urlparse from git_config import GitConfig from git_refs import R_HEADS, HEAD -- cgit v1.2.3-54-g00ecf