Skip to content

Commit 54613a1

Browse files
committed
Final time removing artifacts.
1 parent cbcd552 commit 54613a1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Python/pylifecycle.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2029,9 +2029,6 @@ make_pre_finalization_calls(PyThreadState *tstate)
20292029
_PyAtExit_Call(tstate->interp);
20302030

20312031
_PyRWMutex_Unlock(&tstate->interp->prefini_mutex);
2032-
if (called == 0) {
2033-
break;
2034-
}
20352032
}
20362033
}
20372034

@@ -3464,14 +3461,12 @@ wait_for_thread_shutdown(PyThreadState *tstate)
34643461
/* else: threading not imported */
34653462
return;
34663463
}
3467-
int called = 0;
34683464
result = PyObject_CallMethodNoArgs(threading, &_Py_ID(_shutdown));
34693465
if (result == NULL) {
34703466
PyErr_FormatUnraisable("Exception ignored on threading shutdown");
34713467
}
34723468
Py_XDECREF(result);
34733469
Py_DECREF(threading);
3474-
return;
34753470
}
34763471

34773472
int Py_AtExit(void (*func)(void))

0 commit comments

Comments
 (0)