mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
#16303: remove extra quotes from exception and add (). Initial patch by Vladimir Rutsky.
This commit is contained in:
parent
b8fbff889f
commit
b74e02e6c2
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue