From ef857e6decdf9a1126bee57020288c62c6cc727d Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Mon, 12 Aug 2019 14:18:54 +0200 Subject: [PATCH] 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 --- bindings/python/examples/gpioset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2