equal
deleted
inserted
replaced
25 """XXX docstring""" |
25 """XXX docstring""" |
26 |
26 |
27 def __init__(self, data): |
27 def __init__(self, data): |
28 self.data = data |
28 self.data = data |
29 |
29 |
30 def sort(self, crit="inlinetime"): |
30 def sort(self, crit=r"inlinetime"): |
31 """XXX docstring""" |
31 """XXX docstring""" |
32 # profiler_entries isn't defined when running under PyPy. |
32 # profiler_entries isn't defined when running under PyPy. |
33 if profiler_entry: |
33 if profiler_entry: |
34 if crit not in profiler_entry.__dict__: |
34 if crit not in profiler_entry.__dict__: |
35 raise ValueError("Can't sort by %s" % crit) |
35 raise ValueError("Can't sort by %s" % crit) |