]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46310: simplify `for` loop in `asyncio/windows_events` (GH-30334)
authorNikita Sobolev <mail@sobolevn.me>
Tue, 11 Jan 2022 10:51:34 +0000 (13:51 +0300)
committerGitHub <noreply@github.com>
Tue, 11 Jan 2022 10:51:34 +0000 (12:51 +0200)
Lib/asyncio/windows_events.py

index 427d4624ad0764685c1b14e6ab41dce6187ef9dc..0d9a07ef4772e5fd69da52a0eba96327d2c59305 100644 (file)
@@ -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