D6106: py3: convert URL to str before passing it to request
Kwan (Ian Moody)
phabricator at mercurial-scm.org
Sat Mar 9 20:50:33 EST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa98dabdb5a7b: py3: convert URL to str before passing it to request (authored by Kwan, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D6106?vs=14419&id=14432
REVISION DETAIL
https://phab.mercurial-scm.org/D6106
AFFECTED FILES
hgext/phabricator.py
CHANGE DETAILS
diff --git a/hgext/phabricator.py b/hgext/phabricator.py
--- a/hgext/phabricator.py
+++ b/hgext/phabricator.py
@@ -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)
To: Kwan, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list