# HG changeset patch # User Ian Moody # Date 1552093225 0 # Node ID a98dabdb5a7b96c42b66d6ca222ce04eeec04b22 # Parent 47125193bad0ee8e8a977d7dfe1ee9f710b0718a py3: convert URL to str before passing it to request Differential Revision: https://phab.mercurial-scm.org/D6106 diff -r 47125193bad0 -r a98dabdb5a7b 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)