Files
python-uncompyle6/test/simple_source/bug35/02_async.py
rocky af209dc142 Bug in 3.5+ generator detection...
Also bug in 3.5 code detection for async attribute
2019-06-05 19:08:21 -04:00

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