##// END OF EJS Templates
url: pass str to pathname2url...
Gregory Szorc -
r45131:e74af49a default
parent child Browse files
Show More
@@ -674,7 +674,9 b' def open(ui, url_, data=None, sendaccept'
674 674 url_, authinfo = u.authinfo()
675 675 else:
676 676 path = util.normpath(os.path.abspath(url_))
677 url_ = b'file://' + pycompat.bytesurl(urlreq.pathname2url(path))
677 url_ = b'file://' + pycompat.bytesurl(
678 urlreq.pathname2url(pycompat.fsdecode(path))
679 )
678 680 authinfo = None
679 681 return opener(ui, authinfo, sendaccept=sendaccept).open(
680 682 pycompat.strurl(url_), data
General Comments 0
You need to be logged in to leave comments. Login now