summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-01-11 10:51:34 (GMT)
committerGitHub <noreply@github.com>2022-01-11 10:51:34 (GMT)
commitfc75bfb8be8494e22123f2c14d1ab497c77cc22d (patch)
treea7eeca8687db3d5a53968a2320223a63a29dd076
parente13cdca0f5224ec4e23bdd04bb3120506964bc8b (diff)
downloadcpython-fc75bfb8be8494e22123f2c14d1ab497c77cc22d.zip
cpython-fc75bfb8be8494e22123f2c14d1ab497c77cc22d.tar.gz
cpython-fc75bfb8be8494e22123f2c14d1ab497c77cc22d.tar.bz2
bpo-46310: simplify `for` loop in `asyncio/windows_events` (GH-30334)
-rw-r--r--Lib/asyncio/windows_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/windows_events.py b/Lib/asyncio/windows_events.py
index 427d462..0d9a07e 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