Skip to content

Commit 707db41

Browse files
committed
Revert "gh-101766: Fix refleak for _BlockingOnManager resources (gh-101942)"
This reverts commit 775f881.
1 parent 775f881 commit 707db41

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Lib/importlib/_bootstrap.py

-5
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,6 @@ def __enter__(self):
8585
def __exit__(self, *args, **kwargs):
8686
"""Remove self.lock from this thread's _blocking_on list."""
8787
self.blocked_on.remove(self.lock)
88-
if len(self.blocked_on) == 0:
89-
# gh-101766: glboal cache should be cleaned-up
90-
# if there is no more _blocking_on for this thread.
91-
del _blocking_on[self.thread_id]
92-
del self.blocked_on
9388

9489

9590
class _DeadlockError(RuntimeError):

0 commit comments

Comments
 (0)