artiq/artiq/monkey_patches.py

14 lines
266 B
Python

import sys
__all__ = []
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