changeset 41832: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 ae189674bdad
children 89f01ea906ae
files mercurial/utils/procutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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