##// END OF EJS Templates
py3: drop an unnecessary fsencode() before comparing with constant...
Martin von Zweigbergk -
r44055:47d983f0 default
parent child Browse files
Show More
@@ -288,10 +288,7 b' def hgexecutable():'
288 _sethgexecutable(pycompat.sysexecutable)
288 _sethgexecutable(pycompat.sysexecutable)
289 elif (
289 elif (
290 not pycompat.iswindows
290 not pycompat.iswindows
291 and os.path.basename(
291 and os.path.basename(getattr(mainmod, '__file__', '')) == 'hg'
292 pycompat.fsencode(getattr(mainmod, '__file__', ''))
293 )
294 == b'hg'
295 ):
292 ):
296 _sethgexecutable(pycompat.fsencode(mainmod.__file__))
293 _sethgexecutable(pycompat.fsencode(mainmod.__file__))
297 else:
294 else:
General Comments 0
You need to be logged in to leave comments. Login now