summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2012-10-24 20:43:02 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2012-10-24 20:43:02 (GMT)
commitb74e02e6c2077324734244cf615bfacac1c73576 (patch)
tree0e5fd294059561034296ec1bc340163c2f651a15
parentb8fbff889f78e1abb3992d9bf7e4949fbcfe26a0 (diff)
downloadcpython-b74e02e6c2077324734244cf615bfacac1c73576.zip
cpython-b74e02e6c2077324734244cf615bfacac1c73576.tar.gz
cpython-b74e02e6c2077324734244cf615bfacac1c73576.tar.bz2
#16303: remove extra quotes from exception and add (). Initial patch by Vladimir Rutsky.
-rw-r--r--Lib/pstats.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py
index 9a22965..4338994 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):