You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
18 lines
483 B
Python
18 lines
483 B
Python
# From 3.7.3 asyncio/base_events.py
|
|
# We had (still have) screwy logic. Python 3.5 code node detection was off too.
|
|
|
|
async def create_connection(self):
|
|
infos = await self._ensure_resolved()
|
|
|
|
laddr_infos = await self._ensure_resolved()
|
|
for family in infos:
|
|
for laddr in laddr_infos:
|
|
family = 1
|
|
else:
|
|
continue
|
|
await self.sock_connect()
|
|
else:
|
|
raise OSError('Multiple exceptions: {}' for exc in family)
|
|
|
|
return
|