changeset 41901:a98dabdb5a7b

py3: convert URL to str before passing it to request Differential Revision: https://phab.mercurial-scm.org/D6106
author Ian Moody <moz-ian@perix.co.uk>
date Sat, 09 Mar 2019 01:00:25 +0000
parents 47125193bad0
children 59bae59b7498
files hgext/phabricator.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)