py3: convert URL to str before passing it to request
authorIan Moody <moz-ian@perix.co.uk>
Sat, 09 Mar 2019 01:00:25 +0000
changeset 41901 a98dabdb5a7b
parent 41900 47125193bad0
child 41902 59bae59b7498
py3: convert URL to str before passing it to request Differential Revision: https://phab.mercurial-scm.org/D6106
hgext/phabricator.py
--- a/hgext/phabricator.py	Fri Mar 08 23:45:12 2019 +0000
+++ b/hgext/phabricator.py	Sat Mar 09 01:00:25 2019 +0000
@@ -218,7 +218,7 @@
         body = sout.read()
     else:
         urlopener = urlmod.opener(repo.ui, authinfo)
-        request = util.urlreq.request(url, data=data)
+        request = util.urlreq.request(pycompat.strurl(url), data=data)
         with contextlib.closing(urlopener.open(request)) as rsp:
             body = rsp.read()
     repo.ui.debug(b'Conduit Response: %s\n' % body)