diff options
| author | Jaipaul Cheernam <[email protected]> | 2026-08-11 15:34:33 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-08-13 10:12:41 -0600 |
| commit | 527115ef6783cec49e5610c523c124b399011361 (patch) | |
| tree | c7ec8ac0bf16157b18f04ae502f32b778df6e3e8 /contrib/apps/httpserver | |
| parent | 1262e50a34a0e01f974e8d909c5b255f8fa7199e (diff) | |
pylibfdt: Replace removed SWIG Python 2 compatibility macros
SWIG 4.5.0 removed Python 2 compatibility macros (PyInt_*, PyString_*)
from its runtime header pyhead.swg (see commit 79f7a2b7cb7d). Replace
them with their Python 3 C API equivalents:
- PyString_FromString -> PyUnicode_FromString
- PyString_AsString -> PyBytes_AsString
- PyInt_AsLong -> PyLong_AsLong
The replacements are safe since the macros were already aliased to
these exact functions in SWIG's Python 3 code path.
This is a backport of dtc commit 5008d1d6a356 ("pylibfdt: Replace
removed SWIG Python 2 compatibility macros").
Signed-off-by: Jaipaul Cheernam <[email protected]>
Reviewed-by: Jérémie Dautheribes <[email protected]>
Tested-by: Jérémie Dautheribes <[email protected]>
Signed-off-by: Peter Robinson <[email protected]>
Reviewed-by: Peter Robinson <[email protected]>
Diffstat (limited to 'contrib/apps/httpserver')
0 files changed, 0 insertions, 0 deletions
