diff mercurial/util.py @ 43701:38387f9e4d22

py3: use native string for 'macosx_app' I couldn't find any definitive information on this, but all examples (except for ours) seem to use a native string. Differential Revision: https://phab.mercurial-scm.org/D7414
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 14 Nov 2019 14:14:11 -0800
parents 0b7733719d21
children 664e24207728
line wrap: on
line diff
--- 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: