[Python-checkins] GH-99905: Fix output of misses in summarize_stats.py execution counts (GH-99906)

markshannon webhook-mailer at python.org
Wed Nov 30 14:17:49 EST 2022


https://github.com/python/cpython/commit/bf94c653f4291ba2db506453e0e00a82fe06b70a
commit: bf94c653f4291ba2db506453e0e00a82fe06b70a
branch: main
author: Michael Droettboom <mdboom at gmail.com>
committer: markshannon <mark at hotpy.org>
date: 2022-11-30T19:17:08Z
summary:

GH-99905: Fix output of misses in summarize_stats.py execution counts (GH-99906)

This was an indentation error introduced in 2844aa6a

files:
M Tools/scripts/summarize_stats.py

diff --git a/Tools/scripts/summarize_stats.py b/Tools/scripts/summarize_stats.py
index 8d91bda5a43a..9c098064fe54 100644
--- a/Tools/scripts/summarize_stats.py
+++ b/Tools/scripts/summarize_stats.py
@@ -317,11 +317,11 @@ def calculate_execution_counts(opcode_stats, total):
     for (count, name, miss) in counts:
         cumulative += count
         if miss:
-            miss =  f"{100*miss/count:0.1f}%"
+            miss = f"{100*miss/count:0.1f}%"
         else:
             miss = ""
-            rows.append((name, count, f"{100*count/total:0.1f}%",
-                         f"{100*cumulative/total:0.1f}%", miss))
+        rows.append((name, count, f"{100*count/total:0.1f}%",
+                     f"{100*cumulative/total:0.1f}%", miss))
     return rows
 
 def emit_execution_counts(opcode_stats, total):



More information about the Python-checkins mailing list