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 @@
_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:
......
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