mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
bpo-46310: simplify for loop in asyncio/windows_events (GH-30334)
This commit is contained in:
parent
e13cdca0f5
commit
fc75bfb8be
1 changed files with 1 additions and 1 deletions
|
|
@ -839,7 +839,7 @@ class IocpProactor:
|
||||||
return
|
return
|
||||||
|
|
||||||
# Cancel remaining registered operations.
|
# 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():
|
if fut.cancelled():
|
||||||
# Nothing to do with cancelled futures
|
# Nothing to do with cancelled futures
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue