From 3225b9f9739cd4bcca372d0fa939cea1ae5c6402 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 9 Mar 2020 20:56:57 +0100 Subject: bpo-39877: Remove useless PyEval_InitThreads() calls (GH-18883) Py_Initialize() calls PyEval_InitThreads() since Python 3.7. It's no longer needed to call it explicitly. --- Modules/_threadmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/_threadmodule.c') diff --git a/Modules/_threadmodule.c b/Modules/_threadmodule.c index 11bc16f4b3..ee70183df5 100644 --- a/Modules/_threadmodule.c +++ b/Modules/_threadmodule.c @@ -1074,7 +1074,7 @@ thread_PyThread_start_new_thread(PyObject *self, PyObject *fargs) Py_INCREF(func); Py_INCREF(args); Py_XINCREF(keyw); - PyEval_InitThreads(); /* Start the interpreter's thread-awareness */ + ident = PyThread_start_new_thread(t_bootstrap, (void*) boot); if (ident == PYTHREAD_INVALID_THREAD_ID) { PyErr_SetString(ThreadError, "can't start new thread"); -- cgit v1.2.1