# HG changeset patch # User Gregory Szorc # Date 2017-03-22 05:39:52 # Node ID 29fcfb981324944c55d25519823e27d2db98a556 # Parent e68932dfbb5575e8d3c1d9ad1ea447979e4d5c52 bugzilla: use util.urlreq.urlparse And stop saving a module variable because it shouldn't be necessary. diff --git a/hgext/bugzilla.py b/hgext/bugzilla.py --- a/hgext/bugzilla.py +++ b/hgext/bugzilla.py @@ -307,7 +307,6 @@ from mercurial import ( util, ) -urlparse = util.urlparse xmlrpclib = util.xmlrpclib # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for @@ -657,7 +656,7 @@ class bzxmlrpc(bzaccess): 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()