mirror of https://github.com/python/cpython
#16303: remove extra quotes from exception and add (). Initial patch by Vladimir Rutsky.
This commit is contained in:
parent
b8fbff889f
commit
b74e02e6c2
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue