Patchwork D6106: py3: convert URL to str before passing it to request

login
register
mail settings
Submitter phabricator
Date March 10, 2019, 1:50 a.m.
Message ID <ebd254bf72e79ad784c2d57daeb077f7@localhost.localdomain>
Download mbox | patch
Permalink /patch/39173/
State Not Applicable
Headers show

Comments

phabricator - March 10, 2019, 1:50 a.m.
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




To: Kwan, #hg-reviewers
Cc: mercurial-devel

Patch

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)