mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
tools/cc1: Fix ruff lint check with list length.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user