zephyr/arch
Ulf Magnusson 72e71d6000 x86: gen_idt.py: Use enumerate() to fix pylint warning
Use enumerate() to fix this pylint warning:

    C0200: Consider using enumerate instead of iterating with range and
    len (consider-using-enumerate)

enumerate() is handy when the loop body needs both the element and its
index. It returns (index, element) tuples.

Also use a tuple unpacking to extract 'handler' from the elements in
'vector'.

Piggyback a slightly simpler way to build a list of num_chars 0s.

Getting rid of warnings for a CI check.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-09-10 15:53:49 +02:00
..
arc
arm
common gen_isr_tables: Fix pylint warning by using isinstance() 2019-09-08 22:24:45 -04:00
nios2
posix
riscv
x86 x86: gen_idt.py: Use enumerate() to fix pylint warning 2019-09-10 15:53:49 +02:00
x86_64
xtensa
CMakeLists.txt
Kconfig