We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbcd552 commit 54613a1Copy full SHA for 54613a1
1 file changed
Python/pylifecycle.c
@@ -2029,9 +2029,6 @@ make_pre_finalization_calls(PyThreadState *tstate)
2029
_PyAtExit_Call(tstate->interp);
2030
2031
_PyRWMutex_Unlock(&tstate->interp->prefini_mutex);
2032
- if (called == 0) {
2033
- break;
2034
- }
2035
}
2036
2037
@@ -3464,14 +3461,12 @@ wait_for_thread_shutdown(PyThreadState *tstate)
3464
3461
/* else: threading not imported */
3465
3462
return;
3466
3463
3467
- int called = 0;
3468
result = PyObject_CallMethodNoArgs(threading, &_Py_ID(_shutdown));
3469
if (result == NULL) {
3470
PyErr_FormatUnraisable("Exception ignored on threading shutdown");
3471
3472
Py_XDECREF(result);
3473
Py_DECREF(threading);
3474
- return;
3475
3476
3477
int Py_AtExit(void (*func)(void))
0 commit comments