forked from M-Labs/artiq
monkey-patch Python 3.5.2 to disable broken asyncio.base_events._ipaddr_info optimization (#506)
This commit is contained in:
parent
078a9abeb9
commit
972a74219d
|
@ -155,3 +155,12 @@ if sys.version_info[:3] == (3, 5, 1):
|
|||
|
||||
from asyncio import proactor_events
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue