mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
asyncio: use dict instead of OrderedDict (GH-11710)
This commit is contained in:
parent
9da3583e78
commit
f345170940
1 changed files with 1 additions and 1 deletions
|
@ -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, (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue