From ce36ad8a467d914eb5c91f33835b9eaea18ee93b Mon Sep 17 00:00:00 2001 From: Collin Winter Date: Thu, 30 Aug 2007 01:19:48 +0000 Subject: Raise statement normalization in Lib/. --- Lib/pstats.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Lib/pstats.py') diff --git a/Lib/pstats.py b/Lib/pstats.py index 59c84fe983..cc0a7ac433 100644 --- a/Lib/pstats.py +++ b/Lib/pstats.py @@ -83,7 +83,7 @@ class Stats: keys = kwds.keys() keys.sort() extras = ", ".join(["%s=%s" % (k, kwds[k]) for k in keys]) - raise ValueError, "unrecognized keyword args: %s" % extras + raise ValueError("unrecognized keyword args: %s" % extras) if not len(args): arg = None else: @@ -131,8 +131,8 @@ class Stats: self.stats = arg.stats arg.stats = {} if not self.stats: - raise TypeError, "Cannot create or construct a %r object from '%r''" % ( - self.__class__, arg) + raise TypeError("Cannot create or construct a %r object from '%r''" + % (self.__class__, arg)) return def get_top_level_stats(self): -- cgit v1.2.1