python: update for SWIG 4.3
authorWilliam S Fulton <wsf@fultondesigns.co.uk>
Fri, 18 Oct 2024 07:38:20 +0000 (09:38 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 4 Apr 2025 15:52:26 +0000 (17:52 +0200)
commitff7707e3ffadc09af420b26370b9e097a5b2bc8b
treed7e503d56d81f57a8a7bdb886eb5b5463891744e
parent3f314ed78111473b7cbf1b9d1854c9f6322eea7a
python: update for SWIG 4.3

SWIG 4.3 comes with an API change to the SWIG_Python_AppendOutput()
function, so switch to the recommended SWIG_AppendOutput() instead.
Because the new function is a macro in fact also switch to the  {..}
delimiters as the code needs to be preprocessed. The change is
compatible with the previous SWIG releases 4.2 and 4.1 at least.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2319133
Related: https://github.com/swig/swig/pull/2907
python/ftdi1.i