zephyr/scripts/sanity_chk
Ulf Magnusson 47ef9ba6c2 scripts: sanitycheck: Remove redundant ifs
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>
2019-09-07 07:59:53 -04:00
..
boards/unit/unit_testing
.gitignore
expr_parser.py scripts: sanitycheck: Remove redundant ifs 2019-09-07 07:59:53 -04:00
harness.py scripts: Fix random typo'd whitespace 2019-09-07 07:54:17 -04:00
ini2yaml.py scripts: sanitycheck: Remove redundant ifs 2019-09-07 07:59:53 -04:00
sanity_compare.args
sanity_daily.args
sanity_last_release.csv
sanity_verify.args
sanitycheck-platform-schema.yaml
sanitycheck-tc-schema.yaml
scl.py scripts: Fix random typo'd whitespace 2019-09-07 07:54:17 -04:00