mercurial/lsprof.py
changeset 35836 d4e5b2653693
parent 27617 b1a59b80e1a3
child 40193 b25fbe7e494e
equal deleted inserted replaced
35835:bf367a93f000 35836:d4e5b2653693
    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)