From 5a5137d4081bff76be3b2ba48dcde788cb4b656a Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Thu, 31 Jan 2019 16:28:36 +0900 Subject: [PATCH] asyncio: Use dict instead of OrderedDict --- Lib/asyncio/base_events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index cec47ce67f3824..36fe7e0076c969 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -1187,7 +1187,7 @@ async def create_datagram_endpoint(self, protocol_factory, (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, (