diff options
author | Victor Stinner <vstinner@python.org> | 2020-03-10 00:28:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 00:28:54 (GMT) |
commit | b4698ecfdb526e0a9f5fa6ef0f8e1d8cca500203 (patch) | |
tree | b00c42490d6d76a45ce9301cc1fe35fe78a8ff9e /Python | |
parent | 175a704abfcb3400aaeb66d4f098d92ca7e30892 (diff) | |
download | cpython-b4698ecfdb526e0a9f5fa6ef0f8e1d8cca500203.zip cpython-b4698ecfdb526e0a9f5fa6ef0f8e1d8cca500203.tar.gz cpython-b4698ecfdb526e0a9f5fa6ef0f8e1d8cca500203.tar.bz2 |
bpo-39877: Deprecate PyEval_InitThreads() (GH-18892)
Deprecated PyEval_InitThreads() and PyEval_ThreadsInitialized().
Calling PyEval_InitThreads() now does nothing.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 0ee740a..380212a 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 |