Commit 47d983f0 authored by Martin von Zweigbergk's avatar Martin von Zweigbergk
Browse files

py3: drop an unnecessary fsencode() before comparing with constant

Differential Revision: https://phab.mercurial-scm.org/D7413
parent ef43765c921d
...@@ -288,10 +288,7 @@ ...@@ -288,10 +288,7 @@
_sethgexecutable(pycompat.sysexecutable) _sethgexecutable(pycompat.sysexecutable)
elif ( elif (
not pycompat.iswindows not pycompat.iswindows
and os.path.basename( and os.path.basename(getattr(mainmod, '__file__', '')) == 'hg'
pycompat.fsencode(getattr(mainmod, '__file__', ''))
)
== b'hg'
): ):
_sethgexecutable(pycompat.fsencode(mainmod.__file__)) _sethgexecutable(pycompat.fsencode(mainmod.__file__))
else: else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment