Mercurial > public > mercurial-scm > hg-stable
diff mercurial/utils/procutil.py @ 41837:b275dbb60089
procutil: use a raw string for module name
Otherwise Python 2 will coerce unicode to str.
Differential Revision: https://phab.mercurial-scm.org/D6047
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 02 Mar 2019 12:51:55 -0800 |
parents | b0e3f2d7c143 |
children | ca1014ad3de4 |
line wrap: on
line diff
--- a/mercurial/utils/procutil.py Sat Mar 02 12:51:04 2019 -0800 +++ b/mercurial/utils/procutil.py Sat Mar 02 12:51:55 2019 -0800 @@ -221,7 +221,7 @@ """ return (pycompat.safehasattr(sys, "frozen") or # new py2exe pycompat.safehasattr(sys, "importers") or # old py2exe - imp.is_frozen(u"__main__")) # tools/freeze + imp.is_frozen(r"__main__")) # tools/freeze _hgexecutable = None