summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/summarize_stats.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-02-12 16:07:38 (GMT)
committerGitHub <noreply@github.com>2024-02-12 16:07:38 (GMT)
commit814466101790d4381ca4800c3d3b0cc0aad50c62 (patch)
tree6e4e71af88ab2951fe172a7e821e857606def6d6 /Tools/scripts/summarize_stats.py
parent93ac78ac3ee124942bca7492149c3ff0003b6e30 (diff)
downloadcpython-814466101790d4381ca4800c3d3b0cc0aad50c62.zip
cpython-814466101790d4381ca4800c3d3b0cc0aad50c62.tar.gz
cpython-814466101790d4381ca4800c3d3b0cc0aad50c62.tar.bz2
GH-113710: Fix updating of dict version tag and add watched dict stats (GH-115221)
Diffstat (limited to 'Tools/scripts/summarize_stats.py')
-rw-r--r--Tools/scripts/summarize_stats.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/summarize_stats.py b/Tools/scripts/summarize_stats.py
index 9b7e7b9..7891b9c 100644
--- a/Tools/scripts/summarize_stats.py
+++ b/Tools/scripts/summarize_stats.py
@@ -415,7 +415,7 @@ class Stats:
def get_rare_events(self) -> list[tuple[str, int]]:
prefix = "Rare event "
return [
- (key[len(prefix) + 1:-1], val)
+ (key[len(prefix) + 1:-1].replace("_", " "), val)
for key, val in self._data.items()
if key.startswith(prefix)
]