asyncio: use dict instead of OrderedDict (GH-11710)

This commit is contained in:
Inada Naoki 2019-02-05 17:04:40 +09:00 committed by GitHub
parent 9da3583e78
commit f345170940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1187,7 +1187,7 @@ class BaseEventLoop(events.AbstractEventLoop):
(local_addr, remote_addr)), )
else:
# join address by (family, protocol)
addr_infos = collections.OrderedDict()
addr_infos = {} # Using order preserving dict
for idx, addr in ((0, local_addr), (1, remote_addr)):
if addr is not None:
assert isinstance(addr, tuple) and len(addr) == 2, (