summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-11-05 12:46:29 +1100
committerDamien George <damien@micropython.org>2025-11-05 12:46:29 +1100
commit2a5c5093ec69baf1460d1dadb617b7f5371b5b60 (patch)
treee1b661cbfeb7de7ef9d0c332cdb3e5087fd653db
parent509207c9d03c6116899350d7e3ae06962c0b4df2 (diff)
tools/cc1: Fix ruff lint check with list length.
Signed-off-by: Damien George <damien@micropython.org>
-rwxr-xr-xtools/cc12
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/cc1 b/tools/cc1
index 7a047e9ac..aa2534f01 100755
--- a/tools/cc1
+++ b/tools/cc1
@@ -174,7 +174,7 @@ def process_map_table(file, line, output):
if print_debug:
print(" %s lookup took %u attempts" % (qstr, attempts))
total_attempts += attempts
- if len(entries):
+ if entries:
stats = len(map), len(entries) / len(map), total_attempts / len(entries)
else:
stats = 0, 0, 0