diff hgext/bugzilla.py @ 29431:80880ad3fccd

py3: conditionalize the urlparse import The urlparse library is renamed to urllib.parse in python 3
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 27 Jun 2016 16:16:10 +0530
parents 9e1c9f016b72
children 34b914ac573e
line wrap: on
line diff
--- a/hgext/bugzilla.py	Mon Jun 27 15:53:38 2016 +0530
+++ b/hgext/bugzilla.py	Mon Jun 27 16:16:10 2016 +0530
@@ -281,7 +281,6 @@
 
 import re
 import time
-import urlparse
 import xmlrpclib
 
 from mercurial.i18n import _
@@ -293,6 +292,8 @@
     util,
 )
 
+urlparse = util.urlparse
+
 # Note for extension authors: ONLY specify testedwith = 'internal' for
 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
 # be specifying the version(s) of Mercurial they are tested with, or