xtensa: xtensa_intgen.py: Change 'not lvl in ...' to 'lvl not in ...'

Use the 'not in' operator. Fixes this pylint warning:

    arch/xtensa/core/xtensa_intgen.py:77:7: C0113: Consider changing
    "not lvl in ints_by_lvl" to "lvl not in ints_by_lvl" (unneeded-not)

Fixing pylint warnings for a CI check.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
Ulf Magnusson 2019-09-05 17:33:19 +02:00 committed by Anas Nashif
commit a3793098cb

View file

@ -74,7 +74,7 @@ for match in re.finditer(r'__xtensa_int_level_magic__\s+(\d+)\s+(\d+)', blob):
irq = int(match.group(1)) irq = int(match.group(1))
lvl = int(match.group(2)) lvl = int(match.group(2))
if not lvl in ints_by_lvl: if lvl not in ints_by_lvl:
ints_by_lvl[lvl] = [] ints_by_lvl[lvl] = []
ints_by_lvl[lvl].append(irq) ints_by_lvl[lvl].append(irq)