aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-01-11 13:51:34 +0300
committerGitHub <noreply@github.com>2022-01-11 12:51:34 +0200
commitfc75bfb8be8494e22123f2c14d1ab497c77cc22d (patch)
treea7eeca8687db3d5a53968a2320223a63a29dd076
parente13cdca0f5224ec4e23bdd04bb3120506964bc8b (diff)
downloadcpython3-fc75bfb8be8494e22123f2c14d1ab497c77cc22d.tar.gz
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 427d4624ad..0d9a07ef47 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