From b74e02e6c2077324734244cf615bfacac1c73576 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Wed, 24 Oct 2012 23:43:02 +0300 Subject: [PATCH] #16303: remove extra quotes from exception and add (). Initial patch by Vladimir Rutsky. --- Lib/pstats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/pstats.py b/Lib/pstats.py index 9a22965b7a..4338994e5d 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): -- 2.49.0