bpo-46310: simplify `for` loop in `asyncio/windows_events` (GH-30334)

This commit is contained in:
Nikita Sobolev 2022-01-11 13:51:34 +03:00 committed by GitHub
parent e13cdca0f5
commit fc75bfb8be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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