Skip PyEval_InitThreads() on newer versions of Python

It has no effect starting with 3.7, and is deprecated as of 3.9.
This commit is contained in:
Ole André Vadla Ravnås
2020-12-03 00:13:16 +01:00
parent 6038ace649
commit ba74dabc9c
+2
View File
@@ -3969,7 +3969,9 @@ MOD_INIT (_frida)
{
PyObject * inspect, * module;
#if PY_VERSION_HEX < 0x03070000
PyEval_InitThreads ();
#endif
inspect = PyImport_ImportModule ("inspect");
inspect_getargspec = PyObject_GetAttrString (inspect, PYFRIDA_GETARGSPEC_FUNCTION);