Skip to content

Commit cc628a4

Browse files
committed
Remove comments on the lazy import state NULL checks
1 parent 0b5852c commit cc628a4

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎Python/import.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ _PyImport_ClearLazyModules(PyInterpreterState *interp)
287287
int
288288
_PyImport_DiscardLazyModule(PyInterpreterState *interp, PyObject *name)
289289
{
290-
// Destructors can still run after finalization cleared the set.
291290
if (LAZY_MODULES(interp) == NULL) {
292291
return 0;
293292
}
@@ -4220,7 +4219,6 @@ register_lazy_on_parent(PyThreadState *tstate, PyObject *name, PyObject *source)
42204219
{
42214220
PyDictObject *pending =
42224221
(PyDictObject *)LAZY_PENDING_SUBMODULES(tstate->interp);
4223-
// Destructors can still run after finalization cleared the dict.
42244222
if (pending == NULL) {
42254223
return 0;
42264224
}

0 commit comments

Comments
 (0)