procutil: use a raw string for module name
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 02 Mar 2019 12:51:55 -0800
changeset 41832 b275dbb60089
parent 41831 ae189674bdad
child 41833 89f01ea906ae
procutil: use a raw string for module name Otherwise Python 2 will coerce unicode to str. Differential Revision: https://phab.mercurial-scm.org/D6047
mercurial/utils/procutil.py
--- 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