zephyr/scripts/kconfig
Ulf Magnusson 12ba9dfa52 scripts: Remove unused variables in all Python scripts
Discovered with pylint3.

Use the placeholder name '_' for unproblematic unused variables. It's
what I'm used to, and pylint knows not to flag it.

Python tip:

    for i in range(n):
        some_list.append(0)

can be replaced with

    some_list += n*[0]

Similarly, 3*'\t' gives '\t\t\t'.

(Relevant here because pylint flagged the loop index as unused.)

To do integer division in Python 3, use // instead of /.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-03-28 11:06:20 -05:00
..
checkconfig.py scripts: Remove unused variables in all Python scripts 2019-03-28 11:06:20 -05:00
diffconfig
kconfig.py kconfig: Have ninja Re-run CMake when Kconfig sources change 2019-03-07 10:40:00 +01:00
kconfigfunctions.py scripts: Remove unnecessary () around if/while conditions in Python 2019-03-26 07:59:59 -05:00
kconfiglib.py kconfiglib: Give more helpful hints for missing files 2019-03-06 12:07:50 +01:00
menuconfig.py kconfiglib: Clarify kconfig_filenames doc re. absolute paths 2019-02-20 11:22:17 -06:00