artiq/artiq/monkey_patches.py

14 lines
266 B
Python
Raw Normal View History

import sys
__all__ = []
2017-03-29 06:09:42 +08:00
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