As reported by:
https://github.com/mchehab/zbar/issues/92
python bindings don't build with Python 3.9, because it is
using tp_print, which has been silently ignored since Python
3.0, according with[1]:
"The tp_print slot of PyTypeObject has been removed.
It was used for printing objects to files in Python 2.7
and before.
Since Python 3.0, it has been ignored and unused."
[1] https://docs.python.org/3.9/whatsnew/3.9.html#id3
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
As described at:
http://python3porting.com/cextensions.html
PyObject should be replaced by PyVarObject on python3. This
is backward-compatible with python 2.6 and python 2.7. So,
it should work fine for all practical purposes.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>