From: Nikita Sobolev Date: Tue, 11 Jan 2022 10:51:34 +0000 (+0300) Subject: bpo-46310: simplify `for` loop in `asyncio/windows_events` (GH-30334) X-Git-Tag: v3.11.0a4~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc75bfb8be8494e22123f2c14d1ab497c77cc22d;p=thirdparty%2FPython%2Fcpython.git bpo-46310: simplify `for` loop in `asyncio/windows_events` (GH-30334) --- diff --git a/Lib/asyncio/windows_events.py b/Lib/asyncio/windows_events.py index 427d4624ad07..0d9a07ef4772 100644 --- a/Lib/asyncio/windows_events.py +++ b/Lib/asyncio/windows_events.py @@ -839,7 +839,7 @@ class IocpProactor: 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