From: Inada Naoki Date: Tue, 5 Feb 2019 08:04:40 +0000 (+0900) Subject: asyncio: use dict instead of OrderedDict (GH-11710) X-Git-Tag: v3.8.0a2~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f34517094049170acc311bac30f68fa67f27a301;p=thirdparty%2FPython%2Fcpython.git asyncio: use dict instead of OrderedDict (GH-11710) --- diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index cec47ce67f38..36fe7e0076c9 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -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, (