libgpiod
libgpiod copied to clipboard
Python for LineSettings has invalid __repr__
The code for repr of LineSettings is missing commas to separate the arguments
Current
LineSettings(direction={}, edge_detection={} bias={} drive={} active_low={} debounce_period={} event_clock={} output_value={})
Correct:
LineSettings(direction={}, edge_detection={}, bias={}, drive={}, active_low={}, debounce_period={}, event_clock={}, output_value={})
A suitable test would be
test_settings = LineSettings(....)
assert test_settings == eval(test_settings.__repr__())
Thanks for the report, I'll fix it. Can I have your email address for the Reported-by tag?
Fix is now in master.