fix deprecation warning about PyEval_InitThreads()

PyEval_InitThreads is a no-op in since python 3.9.
This commit is contained in:
Oswald Buddenhagen
2022-08-07 13:13:18 +02:00
parent a7b9d617b2
commit 4318b63912

View File

@@ -3336,7 +3336,9 @@ PyObject *PyInit_alsaaudio(void)
ALSAPCMType.tp_new = alsapcm_new;
ALSAMixerType.tp_new = alsamixer_new;
#if PY_VERSION_HEX < 0x03090000
PyEval_InitThreads();
#endif
#if PY_MAJOR_VERSION < 3
m = Py_InitModule3("alsaaudio", alsaaudio_methods, alsaaudio_module_doc);