tools/cc1: Fix ruff lint check with list length.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2025-11-05 12:46:29 +11:00
parent 509207c9d0
commit 2a5c5093ec

View File

@@ -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