]> granicus.if.org Git - python/commitdiff
asyncio: use dict instead of OrderedDict (GH-11710)
authorInada Naoki <methane@users.noreply.github.com>
Tue, 5 Feb 2019 08:04:40 +0000 (17:04 +0900)
committerGitHub <noreply@github.com>
Tue, 5 Feb 2019 08:04:40 +0000 (17:04 +0900)
Lib/asyncio/base_events.py

index cec47ce67f38243b6bcfd4fb6127421a9587b4f4..36fe7e0076c969b0ab8ed7663b8c534e06406d98 100644 (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, (