diff options
| author | Damien George <damien@micropython.org> | 2025-11-05 12:46:29 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-11-05 12:46:29 +1100 |
| commit | 2a5c5093ec69baf1460d1dadb617b7f5371b5b60 (patch) | |
| tree | e1b661cbfeb7de7ef9d0c332cdb3e5087fd653db | |
| parent | 509207c9d03c6116899350d7e3ae06962c0b4df2 (diff) | |
tools/cc1: Fix ruff lint check with list length.
Signed-off-by: Damien George <damien@micropython.org>
| -rwxr-xr-x | tools/cc1 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
