mercurial/i18n.py
changeset 31074 2912b06905dc
parent 30669 10b17ed9b591
child 34645 75979c8d4572
--- a/mercurial/i18n.py	Wed Feb 22 10:14:18 2017 -0800
+++ b/mercurial/i18n.py	Mon Feb 20 18:40:42 2017 +0530
@@ -21,7 +21,7 @@
 if getattr(sys, 'frozen', None) is not None:
     module = pycompat.sysexecutable
 else:
-    module = __file__
+    module = pycompat.fsencode(__file__)
 
 try:
     unicode