equal
deleted
inserted
replaced
201 |
201 |
202 |
202 |
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) |
210 self.path = path |
210 self.path = path |
211 self.lineno = lineno |
211 self.lineno = lineno |
261 |
261 |
262 def skipname(self): |
262 def skipname(self): |
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 |
270 self.time = time |
270 self.time = time |
271 |
271 |