mirror of https://github.com/python/cpython.git
bpo-46310: simplify `for` loop in `asyncio/windows_events` (GH-30334)
This commit is contained in:
parent
e13cdca0f5
commit
fc75bfb8be
|
@ -839,7 +839,7 @@ def close(self):
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue