changeset 31570:29fcfb981324

bugzilla: use util.urlreq.urlparse And stop saving a module variable because it shouldn't be necessary.
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 21 Mar 2017 22:39:52 -0700
parents e68932dfbb55
children b2a41a826d71
files hgext/bugzilla.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/bugzilla.py	Tue Mar 21 22:34:17 2017 -0700
+++ b/hgext/bugzilla.py	Tue Mar 21 22:39:52 2017 -0700
@@ -307,7 +307,6 @@
     util,
 )
 
-urlparse = util.urlparse
 xmlrpclib = util.xmlrpclib
 
 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
@@ -657,7 +656,7 @@
         self.bztoken = login.get('token', '')
 
     def transport(self, uri):
-        if urlparse.urlparse(uri, "http")[0] == "https":
+        if util.urlreq.urlparse(uri, "http")[0] == "https":
             return cookiesafetransport()
         else:
             return cookietransport()