summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Core and Builtins/2023-01-06-09-22-21.gh-issue-91351.iq2vZ_.rst
blob: 19de1f8d0fb31ebd17588b55344c263d7a85d77c (plain)
1
2
3
4
5
Fix a case where re-entrant imports could corrupt the import deadlock
detection code and cause a :exc:`KeyError` to be raised out of
:mod:`importlib/_bootstrap`.  In addition to the straightforward cases, this
could also happen when garbage collection leads to a warning being emitted --
as happens when it collects an open socket or file)