Commit e94715a
committed
bindings: python: use PyImport_ImportModuleAttrString when available
Commit 035ad74 introduced Py_gpiod_GetModuleAttrString as a copy of
an internal function used by CPython to get module attributes.
CPython 3.14 added PyImport_ImportModuleAttrString to the public API
which allows us to use the standard function when available.
[0]: python/cpython#128912
Signed-off-by: Vincent Fazio <vfazio@gmail.com>1 parent 456bb85 commit e94715a
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
0 commit comments