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

View file

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