Skip to content

Commit f345170

Browse files
authored
asyncio: use dict instead of OrderedDict (GH-11710)
1 parent 9da3583 commit f345170

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/asyncio/base_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ async def create_datagram_endpoint(self, protocol_factory,
11871187
(local_addr, remote_addr)), )
11881188
else:
11891189
# join address by (family, protocol)
1190-
addr_infos = collections.OrderedDict()
1190+
addr_infos = {} # Using order preserving dict
11911191
for idx, addr in ((0, local_addr), (1, remote_addr)):
11921192
if addr is not None:
11931193
assert isinstance(addr, tuple) and len(addr) == 2, (

0 commit comments

Comments
 (0)