Patchwork D2474: py3: use pycompat.strurl to convert url to str

login
register
mail settings
Submitter phabricator
Date Feb. 27, 2018, 9:47 a.m.
Message ID <differential-rev-PHID-DREV-jy4cum6vpp4bbixzn36e-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28439/
State Superseded
Headers show

Comments

phabricator - Feb. 27, 2018, 9:47 a.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2474

AFFECTED FILES
  mercurial/url.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/url.py b/mercurial/url.py
--- a/mercurial/url.py
+++ b/mercurial/url.py
@@ -528,4 +528,4 @@ 
         path = util.normpath(os.path.abspath(url_))
         url_ = 'file://' + urlreq.pathname2url(path)
         authinfo = None
-    return opener(ui, authinfo).open(url_, data)
+    return opener(ui, authinfo).open(pycompat.strurl(url_), data)