mercurial/util.py
changeset 30039 ff7697b436ab
parent 30038 42ead5b3aa7b
child 30053 dbcef8918bbd
--- a/mercurial/util.py	Sun Oct 02 03:38:14 2016 +0530
+++ b/mercurial/util.py	Sun Oct 02 05:29:17 2016 +0530
@@ -927,7 +927,7 @@
     """
     return (safehasattr(sys, "frozen") or # new py2exe
             safehasattr(sys, "importers") or # old py2exe
-            imp.is_frozen("__main__")) # tools/freeze
+            imp.is_frozen(u"__main__")) # tools/freeze
 
 # the location of data files matching the source code
 if mainfrozen() and getattr(sys, 'frozen', None) != 'macosx_app':