Mercurial > hg
changeset 30892:441705506d24
py3: convert os.__file__ to bytes
os.__file__ returns unicode path on Python 3. We need to have bytespath. This
patch uses pycompat.fsencode() to encode unicode path to bytes path.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Tue, 07 Feb 2017 22:47:24 +0530 |
parents | b1b36c6499c2 |
children | a0e3d808690d |
files | mercurial/commands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Feb 08 14:45:30 2017 -0800 +++ b/mercurial/commands.py Tue Feb 07 22:47:24 2017 +0530 @@ -1903,7 +1903,7 @@ fm.write('pythonver', _("checking Python version (%s)\n"), ("%d.%d.%d" % sys.version_info[:3])) fm.write('pythonlib', _("checking Python lib (%s)...\n"), - os.path.dirname(os.__file__)) + os.path.dirname(pycompat.fsencode(os.__file__))) security = set(sslutil.supportedprotocols) if sslutil.hassni: