py3: use pycompat.strurl to convert url to str
authorPulkit Goyal <7895pulkit@gmail.com>
Tue, 27 Feb 2018 00:43:37 +0530
changeset 36484 698fe0f6eb5c
parent 36483 bfb4494f846d
child 36485 9e3cb58c7ab3
py3: use pycompat.strurl to convert url to str Differential Revision: https://phab.mercurial-scm.org/D2474
mercurial/url.py
--- a/mercurial/url.py	Mon Feb 26 13:34:35 2018 -0800
+++ b/mercurial/url.py	Tue Feb 27 00:43:37 2018 +0530
@@ -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)