bugzilla: pass the url to xmlrpclib.ServerProxy as str stable
authorMads Kiilerich <mads@kiilerich.com>
Thu, 03 Dec 2020 22:49:01 +0100
branchstable
changeset 46081 734d051d0efb
parent 46080 1d252e73af61
child 46112 d6afa9c149c3
child 46147 b308d750de82
bugzilla: pass the url to xmlrpclib.ServerProxy as str
hgext/bugzilla.py
--- a/hgext/bugzilla.py	Thu Dec 03 22:49:01 2020 +0100
+++ b/hgext/bugzilla.py	Thu Dec 03 22:49:01 2020 +0100
@@ -759,7 +759,9 @@
         self.fixstatus = self.ui.config(b'bugzilla', b'fixstatus')
         self.fixresolution = self.ui.config(b'bugzilla', b'fixresolution')
 
-        self.bzproxy = xmlrpclib.ServerProxy(bzweb, self.transport(bzweb))
+        self.bzproxy = xmlrpclib.ServerProxy(
+            pycompat.strurl(bzweb), self.transport(bzweb)
+        )
         ver = self.bzproxy.Bugzilla.version()[b'version'].split(b'.')
         self.bzvermajor = int(ver[0])
         self.bzverminor = int(ver[1])