diff --git a/src/_frida.c b/src/_frida.c index 22781ac..4f8afe6 100644 --- a/src/_frida.c +++ b/src/_frida.c @@ -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);