forked from M-Labs/artiq
1
0
Fork 0

monkey-patch Python 3.5.2 to disable broken asyncio.base_events._ipaddr_info optimization (#506)

This commit is contained in:
Sebastien Bourdeauducq 2016-07-13 11:26:35 +08:00
parent 078a9abeb9
commit 972a74219d
1 changed files with 9 additions and 0 deletions

View File

@ -155,3 +155,12 @@ if sys.version_info[:3] == (3, 5, 1):
from asyncio import proactor_events from asyncio import proactor_events
proactor_events._ProactorBaseWritePipeTransport._loop_writing = _loop_writing proactor_events._ProactorBaseWritePipeTransport._loop_writing = _loop_writing
if sys.version_info[:3] == (3, 5, 2):
import asyncio
# See https://github.com/m-labs/artiq/issues/506
def _ipaddr_info(host, port, family, type, proto):
return None
asyncio.base_events._ipaddr_info = _ipaddr_info