]> sigrok.org Git - libsigrok.git/commit
bindings/python: rephrase for Python 3.9 deprecation (call API)
authorGerhard Sittig <redacted>
Mon, 2 Oct 2023 16:33:08 +0000 (18:33 +0200)
committerGerhard Sittig <redacted>
Sat, 14 Oct 2023 15:08:38 +0000 (17:08 +0200)
commit5bc8174531df86991ba8aa6d12942923925d9e72
tree4e89c59ad4b115c2ae7e590c7ed8b5d374bfa05e
parent1711287ee9e5e4d37cab1cf9fcda5c98f732a137
bindings/python: rephrase for Python 3.9 deprecation (call API)

The PyEval_CallObject() routine was deprecated in Python 3.9, use
PyObject_CallObject() instead which has existed since at least 3.0.

There are also PyEval_InitThreads() deprecation warnings, but these
originate from SWIG generated code and are outside of our control.
Requires SWIG version 4.1 to silence these.

Tested-By: Sascha Silbe <redacted>
bindings/python/sigrok/core/classes.i