changeset 7008 | 8fee8ff13d37 |
parent 6212 | e75aab656f46 |
child 7622 | 4dd7b28003d2 |
--- a/mercurial/lsprof.py Mon Sep 08 12:55:46 2008 +0200 +++ b/mercurial/lsprof.py Mon Sep 08 13:07:00 2008 +0200 @@ -25,7 +25,7 @@ def sort(self, crit="inlinetime"): """XXX docstring""" if crit not in profiler_entry.__dict__: - raise ValueError, "Can't sort by %s" % crit + raise ValueError("Can't sort by %s" % crit) self.data.sort(lambda b, a: cmp(getattr(a, crit), getattr(b, crit))) for e in self.data: