| Message ID | 20251009130516.3729433-3-vfazio@gmail.com |
|---|---|
| State | New |
| Headers | show |
| Series | bindings: python: improve line requests and reconfiguration | expand |
diff --git a/bindings/python/gpiod/chip.py b/bindings/python/gpiod/chip.py index 9f38ab7..ba2877d 100644 --- a/bindings/python/gpiod/chip.py +++ b/bindings/python/gpiod/chip.py @@ -339,7 +339,6 @@ class Chip: request._chip_name = req_internal.chip_name request._offsets = req_internal.offsets request._name_map = name_map - request._offset_map = offset_map request._lines = [ offset_map[off] if off in offset_map else off for off in request.offsets diff --git a/bindings/python/gpiod/line_request.py b/bindings/python/gpiod/line_request.py index 7956e54..c0798b5 100644 --- a/bindings/python/gpiod/line_request.py +++ b/bindings/python/gpiod/line_request.py @@ -36,7 +36,6 @@ class LineRequest: self._chip_name: str self._offsets: list[int] self._name_map: dict[str, int] - self._offset_map: dict[int, str] self._lines: list[Union[int, str]] def __bool__(self) -> bool:
The _offset_map attribute was a map of offset -> line name. Values were only inserted when a line was requested via name. As this map is never utilized, remove it. Signed-off-by: Vincent Fazio <vfazio@gmail.com> --- bindings/python/gpiod/chip.py | 1 - bindings/python/gpiod/line_request.py | 1 - 2 files changed, 2 deletions(-)