From fc75bfb8be8494e22123f2c14d1ab497c77cc22d Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Tue, 11 Jan 2022 13:51:34 +0300 Subject: [PATCH] bpo-46310: simplify `for` loop in `asyncio/windows_events` (GH-30334) --- Lib/asyncio/windows_events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/asyncio/windows_events.py b/Lib/asyncio/windows_events.py index 427d4624ad0..0d9a07ef477 100644 --- a/Lib/asyncio/windows_events.py +++ b/Lib/asyncio/windows_events.py @@ -839,7 +839,7 @@ def close(self): return # Cancel remaining registered operations. - for address, (fut, ov, obj, callback) in list(self._cache.items()): + for fut, ov, obj, callback in list(self._cache.values()): if fut.cancelled(): # Nothing to do with cancelled futures pass