mercurial/commands.py
changeset 30921 441705506d24
parent 30913 1be65deb3d54
child 30928 a8786013f056
--- 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: