# HG changeset patch # User Martin von Zweigbergk # Date 2019-11-14 22:03:02 # Node ID ef43765c921d4980b1ec698fc9c15921212b5528 # Parent c5548b0b684770b4fd1e67f404c6d4a498a55e56 py3: use native string as fallback value for __file__ for consistency This is not a bugfix (pycommpat.fsencode(b'') is a no-op on py3), but the b'' value was inconsistent and confusing. Differential Revision: https://phab.mercurial-scm.org/D7412 diff --git a/mercurial/utils/procutil.py b/mercurial/utils/procutil.py --- a/mercurial/utils/procutil.py +++ b/mercurial/utils/procutil.py @@ -289,7 +289,7 @@ def hgexecutable(): elif ( not pycompat.iswindows and os.path.basename( - pycompat.fsencode(getattr(mainmod, '__file__', b'')) + pycompat.fsencode(getattr(mainmod, '__file__', '')) ) == b'hg' ):