Skip to content

Commit 5bfe3e6

Browse files
committed
tools/mpy_ld.py: Fix ruff formatting errors.
Signed-off-by: NikhitaR-IFX <nikhita.rajasekhar@infineon.com>
1 parent f908324 commit 5bfe3e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/mpy_ld.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ def load_object_file(env, f, felf):
11321132
elif sym.entry["st_shndx"] == "SHN_UNDEF" and sym["st_info"]["bind"] == "STB_GLOBAL":
11331133
# Undefined global symbol, needs resolving
11341134
env.unresolved_syms.append(sym)
1135-
if len(dup_errors):
1135+
if len(dup_errors) > 0:
11361136
raise LinkError("\n".join(dup_errors))
11371137

11381138

@@ -1214,7 +1214,7 @@ def link_objects(env, native_qstr_vals_len):
12141214
else:
12151215
raise LinkError("{}: undefined symbol: {}".format(sym.filename, sym.name))
12161216

1217-
if len(undef_errors):
1217+
if len(undef_errors) > 0:
12181218
raise LinkError("\n".join(undef_errors))
12191219

12201220
# Align sections, assign their addresses, and create full_text

0 commit comments

Comments
 (0)