Commit c727a9a4 authored by Julien Massot's avatar Julien Massot Committed by Anas Nashif
Browse files

scripts: gen_kobject_placeholders: iterating the dictionary directly



Fix:
************* Module gen_kobject_placeholders
scripts/gen_kobject_placeholders.py:88:19: C0201:
Consider iterating the dictionary directly
instead of calling .keys() (consider-iterating-dictionary)

Signed-off-by: default avatarJulien Massot <julien.massot@iot.bzh>
parent 36f116b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ def generate_linker_headers(obj):
            continue

        name = one_sect.name
        if name in sections.keys():
        if name in sections:
            # Need section alignment and size
            sections[name]['align'] = one_sect['sh_addralign']
            sections[name]['size'] = one_sect['sh_size']