diff -r 42ead5b3aa7b -r ff7697b436ab mercurial/util.py --- 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':