mirror of
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git
synced 2026-10-25 12:39:18 +03:00
In Python, it is common for objects to allow their `close` method to be executed multiple times out of convenience. An example of this is the `IOBase` class [0] which is the base class of most file-like classes. Update `Chip.close` to follow this example. [0]: https://docs.python.org/release/3.10.0/library/io.html#io.IOBase.close Signed-off-by: Vincent Fazio <vfazio@gmail.com> Link: https://patch.msgid.link/20260403154604.3944747-1-vfazio@gmail.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
6.9 KiB
6.9 KiB