Skip to content

Commit

Permalink
monkey-patch Python 3.5.2 to disable broken asyncio.base_events._ipad…
Browse files Browse the repository at this point in the history
…dr_info optimization (#506)
sbourdeauducq committed Jul 13, 2016
1 parent 078a9ab commit 972a742
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions artiq/monkey_patches.py
Original file line number Diff line number Diff line change
@@ -155,3 +155,12 @@ def _loop_writing(self, f=None, data=None):

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

0 comments on commit 972a742

Please sign in to comment.