Mercurial > hg-stable
changeset 43700:47d983f0af65
py3: drop an unnecessary fsencode() before comparing with constant
Differential Revision: https://phab.mercurial-scm.org/D7413
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 14 Nov 2019 14:07:36 -0800 |
parents | ef43765c921d |
children | 38387f9e4d22 |
files | mercurial/utils/procutil.py |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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: