From: Bartosz Golaszewski Date: Mon, 12 Jun 2023 15:55:29 +0000 (+0200) Subject: bindings: python: examples: gpioset: drop redundant [] X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3fad9c3662122ac6b8c851fda6332ba9468fd640;p=qemu-gpiodev%2Flibgpiod.git bindings: python: examples: gpioset: drop redundant [] dict() accepts an iterable, so the [] brackets are redundant. Suggested-by: Andy Shevchenko Signed-off-by: Bartosz Golaszewski --- diff --git a/bindings/python/examples/gpioset.py b/bindings/python/examples/gpioset.py index 0323e35..e6a516c 100755 --- a/bindings/python/examples/gpioset.py +++ b/bindings/python/examples/gpioset.py @@ -25,7 +25,7 @@ if __name__ == "__main__": return gpiod.LineSettings(direction=Direction.OUTPUT, output_value=val) lvs = [parse_value(arg) for arg in sys.argv[2:]] - config = dict([(l, make_settings(v)) for (l, v) in lvs]) + config = dict((l, make_settings(v)) for (l, v) in lvs) request = gpiod.request_lines( path,