summaryrefslogtreecommitdiff
path: root/Modules/_threadmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-03-09 20:56:57 +0100
committerGitHub <noreply@github.com>2020-03-09 20:56:57 +0100
commit3225b9f9739cd4bcca372d0fa939cea1ae5c6402 (patch)
tree008faa6d058d9f9e449bf2113287aa5e30c8a35f /Modules/_threadmodule.c
parenteebaa9bfc593d5a46b293c1abd929fbfbfd28199 (diff)
downloadcpython-git-3225b9f9739cd4bcca372d0fa939cea1ae5c6402.tar.gz
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.
Diffstat (limited to 'Modules/_threadmodule.c')
-rw-r--r--Modules/_threadmodule.c2
1 files changed, 1 insertions, 1 deletions
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");