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
altera_max10
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
olimex_stm32_e407
reel_board/mesh_badge Bluetooth: SMP: Add pairing failed reason 2019-08-26 13:12:49 +02:00
up_squared/gpio_counter
boards.rst