From: Bartosz Golaszewski Date: Mon, 12 Aug 2019 12:18:54 +0000 (+0200) Subject: bindings: python: examples: don't store the return value unnecessarily X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ef857e6decdf9a1126bee57020288c62c6cc727d;p=qemu-gpiodev%2Flibgpiod.git bindings: python: examples: don't store the return value unnecessarily In gpioset.py: when calling lines.set_values(), there's no point in storing the return value as it's always None. It's also not used anywhere. Signed-off-by: Bartosz Golaszewski --- diff --git a/bindings/python/examples/gpioset.py b/bindings/python/examples/gpioset.py index 70fbcc9..3134b3f 100755 --- a/bindings/python/examples/gpioset.py +++ b/bindings/python/examples/gpioset.py @@ -25,4 +25,4 @@ with gpiod.Chip(sys.argv[1]) as chip: lines = chip.get_lines(offsets) lines.request(consumer=sys.argv[0], type=gpiod.LINE_REQ_DIR_OUT) - vals = lines.set_values(values) + lines.set_values(values)