Read about our upcoming Code of Conduct on this issue

Commit 2fb092d7 authored by Martin von Zweigbergk's avatar Martin von Zweigbergk
Browse files

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

Differential Revision:
parent ef43765c921d
......@@ -288,10 +288,7 @@ def hgexecutable():
elif (
not pycompat.iswindows
and os.path.basename(
pycompat.fsencode(getattr(mainmod, '__file__', ''))
== b'hg'
and os.path.basename(getattr(mainmod, '__file__', '')) == 'hg'
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