mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-37961: Fix regression in tracemalloc.Traceback.__repr__ (GH-23805)
Regression in 8d59eb1b66
.
This commit is contained in:
parent
66d3b589c4
commit
051b981867
3 changed files with 22 additions and 1 deletions
|
@ -226,7 +226,7 @@ class Traceback(Sequence):
|
|||
return str(self[0])
|
||||
|
||||
def __repr__(self):
|
||||
s = "<Traceback %r" % tuple(self)
|
||||
s = f"<Traceback {tuple(self)}"
|
||||
if self._total_nframe is None:
|
||||
s += ">"
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue