py/makemoduledefs.py: Fix declaring multiple module delegations.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2023-06-12 13:09:29 +10:00
parent b02a5fa10a
commit 44295c9daa

View File

@ -109,7 +109,7 @@ def generate_module_delegations(delegations):
print("\n#define MICROPY_MODULE_DELEGATIONS \\")
for obj_module, fun_name in delegations:
print(
" {{ MP_ROM_PTR(&{obj_module}), {fun_name} }},".format(
" {{ MP_ROM_PTR(&{obj_module}), {fun_name} }}, \\".format(
obj_module=obj_module, fun_name=fun_name
)
)