mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-14 23:31:57 +00:00
Fixes these pylint warnings: scripts/sanity_chk/ini2yaml.py:25:22: R1719: The if expression can be replaced with 'test' (simplifiable-if-expression) scripts/sanity_chk/expr_parser.py:208:15: R1719: The if expression can be replaced with 'bool(test)' (simplifiable-if-expression) scripts/sanity_chk/expr_parser.py:210:15: R1719: The if expression can be replaced with 'bool(test)' (simplifiable-if-expression) Also replace a redundant re.compile().match() with re.match(). compile() doesn't help when re-compiling the regular expression each time through. (compile() often doesn't help much in general, because the 're' module caches compiled regexes.) Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no> |
||
---|---|---|
.. | ||
boards/unit/unit_testing | ||
.gitignore | ||
expr_parser.py | ||
harness.py | ||
ini2yaml.py | ||
sanity_compare.args | ||
sanity_daily.args | ||
sanity_last_release.csv | ||
sanity_verify.args | ||
sanitycheck-platform-schema.yaml | ||
sanitycheck-tc-schema.yaml | ||
scl.py |