mirror of
https://github.com/frida/frida-python.git
synced 2026-11-09 17:12:42 -10: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:
1 parent
6038ace649
commit
ba74dabc9c
1 file changed
+2
@@ -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