zephyr/samples/boards
Ulf Magnusson 2481a12529 samples: intel_s1000: Simplify code and fix pylint warning
Empty sequences in Python are falsy, so

    if len(config_file) != 0:

can be simplified to

    if config_file:

pylint warning:

    C1801: Do not use `len(SEQUENCE)` to determine if a sequence is
    empty (len-as-condition)

Simplify the code a bit with os.path.join(), which indirectly gets rid
of the warning. os.path.join('', 'foo') returns 'foo', so things work
out when os.path.basename() returns '' (no directory) as well.

I'm getting rid of pylint warnings for a CI check.

Also replace a '== None' with 'is None', which is more common.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-09-07 08:13:02 -04:00
..
96b_argonkey dts: Rename LED._GPIO_* -> DT_ALIAS_LED._GPIOS_* 2019-07-02 08:26:37 -04:00
altera_max10 cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
arc_secure_services samples: arc_secure_services: fix harness 2019-08-27 09:56:38 -04:00
bbc_microbit Bluetooth: GATT: Fix using variable size storage for CCC 2019-08-22 15:14:39 +03:00
intel_s1000_crb samples: intel_s1000: Simplify code and fix pylint warning 2019-09-07 08:13:02 -04:00
nrf52 dts: Rename LED._GPIO_* -> DT_ALIAS_LED._GPIOS_* 2019-07-02 08:26:37 -04:00
olimex_stm32_e407 yaml: Remove redundant document separators 2019-06-19 10:40:10 +02:00
reel_board/mesh_badge Bluetooth: SMP: Add pairing failed reason 2019-08-26 13:12:49 +02:00
up_squared/gpio_counter cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
boards.rst