Unverified Kaydet (Commit) f3451709 authored tarafından Inada Naoki's avatar Inada Naoki Kaydeden (comit) GitHub

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

üst 9da3583e
...@@ -1187,7 +1187,7 @@ class BaseEventLoop(events.AbstractEventLoop): ...@@ -1187,7 +1187,7 @@ class BaseEventLoop(events.AbstractEventLoop):
(local_addr, remote_addr)), ) (local_addr, remote_addr)), )
else: else:
# join address by (family, protocol) # 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)): for idx, addr in ((0, local_addr), (1, remote_addr)):
if addr is not None: if addr is not None:
assert isinstance(addr, tuple) and len(addr) == 2, ( assert isinstance(addr, tuple) and len(addr) == 2, (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment