diff mercurial/changelog.py @ 41831:ae189674bdad

global: use raw strings for __slots__ Otherwise Python 2 will coerce unicode to str at module load time. We don't like automatic string coercions. Differential Revision: https://phab.mercurial-scm.org/D6046
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 02 Mar 2019 12:51:04 -0800
parents 6843379bf99e
children caa067ee21dc
line wrap: on
line diff
--- a/mercurial/changelog.py	Thu Feb 28 07:45:51 2019 -0800
+++ b/mercurial/changelog.py	Sat Mar 02 12:51:04 2019 -0800
@@ -183,8 +183,8 @@
     """
 
     __slots__ = (
-        u'_offsets',
-        u'_text',
+        r'_offsets',
+        r'_text',
     )
 
     def __new__(cls, text):