changeset 36454:698fe0f6eb5c

py3: use pycompat.strurl to convert url to str Differential Revision: https://phab.mercurial-scm.org/D2474
author Pulkit Goyal <7895pulkit@gmail.com>
date Tue, 27 Feb 2018 00:43:37 +0530
parents bfb4494f846d
children 9e3cb58c7ab3
files mercurial/url.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)