comparison 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
comparison
equal deleted inserted replaced
41835:c6a5009ed04a 41836:ae189674bdad
1214 """A node in a doubly linked list. 1214 """A node in a doubly linked list.
1215 1215
1216 Holds a reference to nodes on either side as well as a key-value 1216 Holds a reference to nodes on either side as well as a key-value
1217 pair for the dictionary entry. 1217 pair for the dictionary entry.
1218 """ 1218 """
1219 __slots__ = (u'next', u'prev', u'key', u'value', u'cost') 1219 __slots__ = (r'next', r'prev', r'key', r'value', r'cost')
1220 1220
1221 def __init__(self): 1221 def __init__(self):
1222 self.next = None 1222 self.next = None
1223 self.prev = None 1223 self.prev = None
1224 1224