mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user