Skip to content

Commit 2b013d8

Browse files
committed
gh-152298: Finalize pending lazy owners on commit
1 parent 33d3ade commit 2b013d8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Objects/lazyimportobject.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,7 @@ finalize_owner_if_matches(PyThreadState *tstate, PyLazyImportObject *m,
220220
int finalized = 0;
221221
PyInterpreterState *interp = tstate->interp;
222222
_PyImport_AcquireLock(interp);
223-
if (!m->lz_owner_pending &&
224-
!m->lz_owner_finalized &&
223+
if (!m->lz_owner_finalized &&
225224
owner_matches(m, globals, name))
226225
{
227226
m->lz_owner_finalized = 1;

0 commit comments

Comments
 (0)