py3: convert URL to str before passing it to request
Differential Revision: https://phab.mercurial-scm.org/D6106
--- 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)