Show More
@@ -183,8 +183,8 b' class changelogrevision(object):' | |||
|
183 | 183 | """ |
|
184 | 184 | |
|
185 | 185 | __slots__ = ( |
|
186 |
|
|
|
187 |
|
|
|
186 | r'_offsets', | |
|
187 | r'_text', | |
|
188 | 188 | ) |
|
189 | 189 | |
|
190 | 190 | def __new__(cls, text): |
@@ -203,7 +203,7 b' state = ProfileState()' | |||
|
203 | 203 | class CodeSite(object): |
|
204 | 204 | cache = {} |
|
205 | 205 | |
|
206 |
__slots__ = ( |
|
|
206 | __slots__ = (r'path', r'lineno', r'function', r'source') | |
|
207 | 207 | |
|
208 | 208 | def __init__(self, path, lineno, function): |
|
209 | 209 | assert isinstance(path, bytes) |
@@ -263,7 +263,7 b' class CodeSite(object):' | |||
|
263 | 263 | return r'%s:%s' % (self.filename(), self.function) |
|
264 | 264 | |
|
265 | 265 | class Sample(object): |
|
266 |
__slots__ = ( |
|
|
266 | __slots__ = (r'stack', r'time') | |
|
267 | 267 | |
|
268 | 268 | def __init__(self, stack, time): |
|
269 | 269 | self.stack = stack |
@@ -1216,7 +1216,7 b' class _lrucachenode(object):' | |||
|
1216 | 1216 | Holds a reference to nodes on either side as well as a key-value |
|
1217 | 1217 | pair for the dictionary entry. |
|
1218 | 1218 | """ |
|
1219 |
__slots__ = ( |
|
|
1219 | __slots__ = (r'next', r'prev', r'key', r'value', r'cost') | |
|
1220 | 1220 | |
|
1221 | 1221 | def __init__(self): |
|
1222 | 1222 | self.next = None |
General Comments 0
You need to be logged in to leave comments.
Login now