As mentioned on:
https://cpython-ericholscher.readthedocs.io/en/sphinx-hoverxref/whatsnew/3.9.html
The PyEval_InitThreads() and PyEval_ThreadsInitialized() functions are now
deprecated and will be removed in Python 3.11. Calling PyEval_InitThreads()
now does nothing. The GIL is initialized by Py_Initialize() since Python 3.7.
So, let's not call it on Python 3.9, in order to avoid a
warning noise.
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>