mercurial/utils/procutil.py
changeset 43657 38387f9e4d22
parent 43656 47d983f0af65
child 43671 664e24207728
--- a/mercurial/utils/procutil.py	Thu Nov 14 14:07:36 2019 -0800
+++ b/mercurial/utils/procutil.py	Thu Nov 14 14:14:11 2019 -0800
@@ -281,7 +281,7 @@
         if hg:
             _sethgexecutable(hg)
         elif mainfrozen():
-            if getattr(sys, 'frozen', None) == b'macosx_app':
+            if getattr(sys, 'frozen', None) == 'macosx_app':
                 # Env variable set by py2app
                 _sethgexecutable(encoding.environ[b'EXECUTABLEPATH'])
             else:
@@ -457,7 +457,7 @@
     get either the python call or current executable.
     """
     if mainfrozen():
-        if getattr(sys, 'frozen', None) == b'macosx_app':
+        if getattr(sys, 'frozen', None) == 'macosx_app':
             # Env variable set by py2app
             return [encoding.environ[b'EXECUTABLEPATH']]
         else: