Bug in 3.5+ generator detection...

Also bug in 3.5 code detection for async attribute
This commit is contained in:
rocky
2019-06-04 13:38:06 -04:00
parent ad419e0ed9
commit af209dc142
5 changed files with 24 additions and 18 deletions

View File

@@ -0,0 +1,17 @@
# 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