mirror of
https://github.com/larsimmisch/pyalsaaudio.git
synced 2026-04-18 00:46:29 +00:00
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;
|
ALSAPCMType.tp_new = alsapcm_new;
|
||||||
ALSAMixerType.tp_new = alsamixer_new;
|
ALSAMixerType.tp_new = alsamixer_new;
|
||||||
|
|
||||||
|
#if PY_VERSION_HEX < 0x03090000
|
||||||
PyEval_InitThreads();
|
PyEval_InitThreads();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if PY_MAJOR_VERSION < 3
|
#if PY_MAJOR_VERSION < 3
|
||||||
m = Py_InitModule3("alsaaudio", alsaaudio_methods, alsaaudio_module_doc);
|
m = Py_InitModule3("alsaaudio", alsaaudio_methods, alsaaudio_module_doc);
|
||||||
|
|||||||
Reference in New Issue
Block a user