summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorInada Naoki <methane@users.noreply.github.com>2019-02-05 08:04:40 (GMT)
committerGitHub <noreply@github.com>2019-02-05 08:04:40 (GMT)
commitf34517094049170acc311bac30f68fa67f27a301 (patch)
tree305941bdc482ca3f266af19e49716608688a1179 /Lib/asyncio
parent9da3583e78603a81b1839e17a420079f734a75b0 (diff)
downloadcpython-f34517094049170acc311bac30f68fa67f27a301.zip
cpython-f34517094049170acc311bac30f68fa67f27a301.tar.gz
cpython-f34517094049170acc311bac30f68fa67f27a301.tar.bz2
asyncio: use dict instead of OrderedDict (GH-11710)
Diffstat (limited to 'Lib/asyncio')
-rw-r--r--Lib/asyncio/base_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py
index cec47ce..36fe7e0 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, (