diff --git a/Lib/pstats.py b/Lib/pstats.py index 9a22965b7a1..4338994e5d4 100644 --- a/Lib/pstats.py +++ b/Lib/pstats.py @@ -120,8 +120,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):