##// END OF EJS Templates
global: use raw strings for __slots__...
Gregory Szorc -
r41997:ae189674 default
parent child Browse files
Show More
@@ -183,8 +183,8 b' class changelogrevision(object):'
183 """
183 """
184
184
185 __slots__ = (
185 __slots__ = (
186 u'_offsets',
186 r'_offsets',
187 u'_text',
187 r'_text',
188 )
188 )
189
189
190 def __new__(cls, text):
190 def __new__(cls, text):
@@ -203,7 +203,7 b' state = ProfileState()'
203 class CodeSite(object):
203 class CodeSite(object):
204 cache = {}
204 cache = {}
205
205
206 __slots__ = (u'path', u'lineno', u'function', u'source')
206 __slots__ = (r'path', r'lineno', r'function', r'source')
207
207
208 def __init__(self, path, lineno, function):
208 def __init__(self, path, lineno, function):
209 assert isinstance(path, bytes)
209 assert isinstance(path, bytes)
@@ -263,7 +263,7 b' class CodeSite(object):'
263 return r'%s:%s' % (self.filename(), self.function)
263 return r'%s:%s' % (self.filename(), self.function)
264
264
265 class Sample(object):
265 class Sample(object):
266 __slots__ = (u'stack', u'time')
266 __slots__ = (r'stack', r'time')
267
267
268 def __init__(self, stack, time):
268 def __init__(self, stack, time):
269 self.stack = stack
269 self.stack = stack
@@ -1216,7 +1216,7 b' class _lrucachenode(object):'
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
General Comments 0
You need to be logged in to leave comments. Login now