From b4698ecfdb526e0a9f5fa6ef0f8e1d8cca500203 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 10 Mar 2020 01:28:54 +0100 Subject: bpo-39877: Deprecate PyEval_InitThreads() (GH-18892) Deprecated PyEval_InitThreads() and PyEval_ThreadsInitialized(). Calling PyEval_InitThreads() now does nothing. --- Python/ceval.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'Python/ceval.c') diff --git a/Python/ceval.c b/Python/ceval.c index 0ee740ace3..380212a71a 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -241,12 +241,7 @@ _PyEval_InitThreads(PyThreadState *tstate) void PyEval_InitThreads(void) { - PyThreadState *tstate = _PyThreadState_GET(); - - PyStatus status = _PyEval_InitThreads(tstate); - if (_PyStatus_EXCEPTION(status)) { - Py_ExitStatusException(status); - } + /* Do nothing: kept for backward compatibility */ } void -- cgit v1.2.1