zephyr/scripts
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
..
checkpatch
ci scripts: Remove extra trailing newlines from Python scripts 2019-03-26 07:53:08 -05:00
coccinelle
cross_compiler
dts scripts/dts: Remove unused variables and imports 2019-03-28 11:06:01 -05:00
footprint scripts: size_report: Fix output of header break line 2019-02-28 09:23:16 -08:00
gitlint scripts: gitlint: Fix broken module docstring 2019-03-26 07:50:06 -05:00
kconfig scripts: Remove unused variables in all Python scripts 2019-03-28 11:06:20 -05:00
sanity_chk scripts: Remove unused variables in all Python scripts 2019-03-28 11:06:20 -05:00
support scripts: Remove extra trailing newlines from Python scripts 2019-03-26 07:53:08 -05:00
west_commands scripts: Remove unnecessary () around if/while conditions in Python 2019-03-26 07:59:59 -05:00
.gitignore
check_link_map.py scripts: Remove unnecessary () around if/while conditions in Python 2019-03-26 07:59:59 -05:00
checkpatch.pl userspace: remove APPLICATION_MEMORY feature 2019-02-08 07:04:30 -05:00
checkstack.pl
coccicheck scripts: coccicheck: Add support for SPFLAGS 2019-02-07 08:12:20 -05:00
dir_is_writeable.py
elf_helper.py scripts: Remove unused variables in all Python scripts 2019-03-28 11:06:20 -05:00
file2hex.py
filter-known-issues.py scripts: Remove unused variables in all Python scripts 2019-03-28 11:06:20 -05:00
gen_app_partitions.py scripts: Remove unused variables in all Python scripts 2019-03-28 11:06:20 -05:00
gen_cfb_font_header.py
gen_gcov_files.py
gen_kobject_list.py userspace: add additional script documentation 2019-03-12 08:37:58 +01:00
gen_offset_header.py
gen_priv_stacks.py scripts: Remove unused variables in all Python scripts 2019-03-28 11:06:20 -05:00
gen_relocate_app.py scripts: Remove unused variables in all Python scripts 2019-03-28 11:06:20 -05:00
gen_syscall_header.py scripts: Remove unnecessary () around if/while conditions in Python 2019-03-26 07:59:59 -05:00
gen_syscalls.py userspace: properly namespace handler functions 2019-03-18 09:23:11 -07:00
mergehex.py scripts: Remove unused variables in all Python scripts 2019-03-28 11:06:20 -05:00
parse_syscalls.py userspace: add additional script documentation 2019-03-12 08:37:58 +01:00
process_gperf.py scripts: Remove unnecessary () around if/while conditions in Python 2019-03-26 07:59:59 -05:00
qemu-machine-hack.py
requirements.txt scripts/dts: Fix for PyYAML 5.1 Loader changes 2019-03-13 23:21:42 -05:00
sanitycheck sanitycheck: document that --save-tests appends to existing file 2019-03-28 09:30:00 -04:00
series-push-hook.sh scripts: fix path issue in push-hook script 2019-03-13 11:59:38 -05:00
spelling.txt
subfolder_list.py scripts: Remove unnecessary () around if/while conditions in Python 2019-03-26 07:59:59 -05:00
tags.sh
valgrind.supp
waitpid
west-commands.yml scripts: west_commands: add sign command 2019-02-07 08:44:19 -05:00
yaml_to_cmake.py CMake/Kconfig: CMake and Kconfig build integration 2019-02-08 22:47:02 -05:00