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:
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):
......
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