mercurial/utils/procutil.py
changeset 43656 47d983f0af65
parent 43655 ef43765c921d
child 43657 38387f9e4d22
--- a/mercurial/utils/procutil.py	Thu Nov 14 14:03:02 2019 -0800
+++ b/mercurial/utils/procutil.py	Thu Nov 14 14:07:36 2019 -0800
@@ -288,10 +288,7 @@
                 _sethgexecutable(pycompat.sysexecutable)
         elif (
             not pycompat.iswindows
-            and os.path.basename(
-                pycompat.fsencode(getattr(mainmod, '__file__', ''))
-            )
-            == b'hg'
+            and os.path.basename(getattr(mainmod, '__file__', '')) == 'hg'
         ):
             _sethgexecutable(pycompat.fsencode(mainmod.__file__))
         else: