From: Ezio Melotti Date: Wed, 24 Oct 2012 20:43:02 +0000 (+0300) Subject: #16303: remove extra quotes from exception and add (). Initial patch by Vladimir... X-Git-Tag: v2.7.4rc1~457 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b74e02e6c2077324734244cf615bfacac1c73576;p=thirdparty%2FPython%2Fcpython.git #16303: remove extra quotes from exception and add (). Initial patch by Vladimir Rutsky. --- diff --git a/Lib/pstats.py b/Lib/pstats.py index 9a22965b7a10..4338994e5d44 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):