scripts: gen_relocate_app: fix C0201 pylint warning

As pylint says "Consider iterating the dictionary directly
instead of calling .keys()" don't use .keys() method.

Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
This commit is contained in:
Bartosz Bilas 2021-10-29 20:09:54 +02:00 committed by Carles Cufí
parent 865ff22b3f
commit 50ec0461af

View file

@ -251,7 +251,7 @@ def string_create_helper(region, memory_type,
else:
if memory_type != 'SRAM' and region == 'rodata':
align_size = 0
if memory_type in mpu_align.keys():
if memory_type in mpu_align:
align_size = mpu_align[memory_type]
linker_string += LINKER_SECTION_SEQ_MPU.format(memory_type.lower(), region, memory_type.upper(),