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