Mercurial > public > mercurial-scm > hg-stable
diff mercurial/lsprof.py @ 7008:8fee8ff13d37
use Exception(args)-style raising consistently (py3k compatibility)
author | Peter Ruibal <peter.ruibal@intel.com> |
---|---|
date | Mon, 08 Sep 2008 13:07:00 +0200 |
parents | e75aab656f46 |
children | 4dd7b28003d2 |
line wrap: on
line diff
--- 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: