Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mercurial
mercurial-devel
Commits
47d983f0af65
Commit
47d983f0
authored
Nov 14, 2019
by
Martin von Zweigbergk
Browse files
py3: drop an unnecessary fsencode() before comparing with constant
Differential Revision:
https://phab.mercurial-scm.org/D7413
parent
ef43765c921d
Changes
1
Hide whitespace changes
Inline
Side-by-side
mercurial/utils/procutil.py
View file @
47d983f0
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment