py3: drop an unnecessary fsencode() before comparing with constant
Differential Revision: https://phab.mercurial-scm.org/D7413
--- 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: