zephyr/samples
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
..
application_development boards: arm: nrf52840_pca10056/nrf52_pca10040: enable pyocd runner 2019-07-10 12:11:46 -05:00
basic doc: Use west everywhere to build and flash 2019-08-27 19:36:24 +02:00
bluetooth Bluetooth: Host: Rename long error codes 2019-08-27 15:13:25 +02:00
boards samples: intel_s1000: Simplify code and fix pylint warning 2019-09-07 08:13:02 -04:00
cpp_synchronization
display samples: display: add a simple sample for st7789v display 2019-08-08 10:11:47 -05:00
drivers doc: fix misspellings in documentation 2019-09-06 16:13:15 +02:00
gui gui: Disable LVGL features by default 2019-08-09 07:35:38 -05:00
hello_world doc: add how to exit from QEMU in samples 2019-09-02 12:06:08 -04:00
mpu
net doc: add how to exit from QEMU in samples 2019-09-02 12:06:08 -04:00
nfc/nfc_hello
philosophers doc: add how to exit from QEMU in samples 2019-09-02 12:06:08 -04:00
portability doc: add how to exit from QEMU in samples 2019-09-02 12:06:08 -04:00
sensor boards: remove quarl_se_c1000 2019-07-29 21:30:25 -07:00
shields sample/shield: x-nucleo-iks01a3: add support to STTS751 2019-07-31 10:32:10 -04:00
subsys doc: add how to exit from QEMU in samples 2019-09-02 12:06:08 -04:00
synchronization doc: add how to exit from QEMU in samples 2019-09-02 12:06:08 -04:00
testing/integration
userspace tests: exclude twr_ke18f platform from several user mode tests 2019-09-03 16:44:22 +02:00
xtensa_asm2
classic.rst
index.rst