forked from auracaster/pyalsaaudio
fix deprecation warning about PyEval_InitThreads()
PyEval_InitThreads is a no-op in since python 3.9.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user