Re: [PATCH] libselinux: Replace PyString_FromString with PyUnicode_FromString for SWIG 4.5.0 compatibility
Stephen Smalley <[email protected]>
| Newsgroups | org.kernel.vger.selinux |
|---|---|
| Message-ID | <CAEjxPJ4-sSa-9NA=FokRGM-HQFOzwFwTjPwHLoKJvy_Ky8pkGA@mail.gmail.com> |
On Thu, Aug 6, 2026 at 10:36 AM Petr Lautrbach <[email protected]> wrote: > > SWIG 4.5.0 removed Python 2 C API compatibility macros (PyInt_*, > PyString_*, SWIG_Python_str_*) from its runtime header pyhead.swg. > These macros previously mapped deprecated Python 2 C API names to their > Python 3 equivalents. > > Fixes: https://github.com/SELinuxProject/selinux/issues/538 > Authored-by: Jitka Plesníková <[email protected]> > Signed-off-by: Petr Lautrbach <[email protected]> Acked-by: Stephen Smalley <[email protected]>