From fa6cd8ec7ba9ee4789fdab95788dea2c8725b3bc Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Fri, 18 Oct 2024 11:02:37 +0100 Subject: [PATCH] Update src/trio/_core/_ki.py --- src/trio/_core/_ki.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/trio/_core/_ki.py b/src/trio/_core/_ki.py index c484349c2..b375e270e 100644 --- a/src/trio/_core/_ki.py +++ b/src/trio/_core/_ki.py @@ -179,7 +179,6 @@ def ki_protection_enabled(frame: types.FrameType | None) -> bool: else: task_ki_protected = task._ki_protected task_frame = task.coro.cr_frame - del task while frame is not None: try: