Commit b74e02e6 authored by Ezio Melotti's avatar Ezio Melotti

#16303: remove extra quotes from exception and add (). Initial patch by Vladimir Rutsky.

parent b8fbff88
...@@ -120,8 +120,8 @@ class Stats: ...@@ -120,8 +120,8 @@ class Stats:
self.stats = arg.stats self.stats = arg.stats
arg.stats = {} arg.stats = {}
if not self.stats: if not self.stats:
raise TypeError, "Cannot create or construct a %r object from '%r''" % ( raise TypeError("Cannot create or construct a %r object from %r"
self.__class__, arg) % (self.__class__, arg))
return return
def get_top_level_stats(self): def get_top_level_stats(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment