8000 tools/cc1: Fix ruff lint check with list length. · micropython/micropython@2a5c509 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2a5c509

Browse files
committed
tools/cc1: Fix ruff lint check with list length.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 509207c commit 2a5c509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/cc1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def process_map_table(file, line, output):
174174
if print_debug:
175175
print(" %s lookup took %u attempts" % (qstr, attempts))
176176
total_attempts += attempts
177-
if len(entries):
177+
if entries:
178178
stats = len(map), len(entries) / len(map), total_attempts / len(entries)
179179
else:
180180
stats = 0, 0, 0

0 commit comments

Comments
 (0)
0