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

This commit is contained in:
Ezio Melotti 2012-10-24 23:43:02 +03:00
parent b8fbff889f
commit b74e02e6c2

View File

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