diff mercurial/util.py @ 41836: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 b141b5243b37
children 7f63ec6969f3
line wrap: on
line diff
--- a/mercurial/util.py	Thu Feb 28 07:45:51 2019 -0800
+++ b/mercurial/util.py	Sat Mar 02 12:51:04 2019 -0800
@@ -1216,7 +1216,7 @@
     Holds a reference to nodes on either side as well as a key-value
     pair for the dictionary entry.
     """
-    __slots__ = (u'next', u'prev', u'key', u'value', u'cost')
+    __slots__ = (r'next', r'prev', r'key', r'value', r'cost')
 
     def __init__(self):
         self.next = None