[Python-checkins] cpython (2.7): #16303: remove extra quotes from exception and add (). Initial patch by
ezio.melotti
python-checkins at python.org
Wed Oct 24 22:43:22 CEST 2012
http://hg.python.org/cpython/rev/ad1cc596bedb
changeset: 79930:ad1cc596bedb
branch: 2.7
parent: 79926:6dde85f2e4af
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Wed Oct 24 23:43:02 2012 +0300
summary:
#16303: remove extra quotes from exception and add (). Initial patch by Vladimir Rutsky.
files:
Lib/pstats.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/pstats.py b/Lib/pstats.py
--- a/Lib/pstats.py
+++ b/Lib/pstats.py
@@ -120,8 +120,8 @@
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):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list