summaryrefslogtreecommitdiffstats
path: root/Lib/tracemalloc.py
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2020-12-16 21:38:32 (GMT)
committerGitHub <noreply@github.com>2020-12-16 21:38:32 (GMT)
commit051b9818671625d125dee8198e0d2af5ad4c85b8 (patch)
tree472f877a688381cdd95312919c1920f7d4fd6448 /Lib/tracemalloc.py
parent66d3b589c44fcbcf9afe1e442d9beac3bd8bcd34 (diff)
downloadcpython-051b9818671625d125dee8198e0d2af5ad4c85b8.zip
cpython-051b9818671625d125dee8198e0d2af5ad4c85b8.tar.gz
cpython-051b9818671625d125dee8198e0d2af5ad4c85b8.tar.bz2
bpo-37961: Fix regression in tracemalloc.Traceback.__repr__ (GH-23805)
Regression in 8d59eb1b66c51b2b918da9881c57d07d08df43b7.
Diffstat (limited to 'Lib/tracemalloc.py')
-rw-r--r--Lib/tracemalloc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tracemalloc.py b/Lib/tracemalloc.py
index 69b4170..cec99c5 100644
--- a/Lib/tracemalloc.py
+++ b/Lib/tracemalloc.py
@@ -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: