diff -r a6b74fbb5ce0 -r 8fee8ff13d37 mercurial/lsprof.py --- 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: