diff -r 47d983f0af65 -r 38387f9e4d22 mercurial/util.py --- a/mercurial/util.py Thu Nov 14 14:07:36 2019 -0800 +++ b/mercurial/util.py Thu Nov 14 14:14:11 2019 -0800 @@ -1823,7 +1823,7 @@ # the location of data files matching the source code -if procutil.mainfrozen() and getattr(sys, 'frozen', None) != b'macosx_app': +if procutil.mainfrozen() and getattr(sys, 'frozen', None) != 'macosx_app': # executable version (py2exe) doesn't support __file__ datapath = os.path.dirname(pycompat.sysexecutable) else: