mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-28 17:45:22 +00:00
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> |
||
---|---|---|
.. | ||
arc | ||
arm | ||
common | ||
nios2 | ||
posix | ||
riscv | ||
x86 | ||
x86_64 | ||
xtensa | ||
CMakeLists.txt | ||
Kconfig |