changeset 46081:734d051d0efb stable

bugzilla: pass the url to xmlrpclib.ServerProxy as str
author Mads Kiilerich <mads@kiilerich.com>
date Thu, 03 Dec 2020 22:49:01 +0100
parents 1d252e73af61
children d6afa9c149c3 b308d750de82
files hgext/bugzilla.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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])