From c27f157a271484e5fe7f6260a0a73ccae5827aca Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 13 Jul 2016 11:29:18 +0800 Subject: [PATCH] make sure monkey patches are applied when asyncio.open_connection() is used --- artiq/protocols/logging.py | 1 + artiq/protocols/pc_rpc.py | 1 + artiq/protocols/sync_struct.py | 1 + 3 files changed, 3 insertions(+) diff --git a/artiq/protocols/logging.py b/artiq/protocols/logging.py index 0c600e288..b166f969b 100644 --- a/artiq/protocols/logging.py +++ b/artiq/protocols/logging.py @@ -2,6 +2,7 @@ import asyncio import logging import re +from artiq.monkey_patches import * from artiq.protocols.asyncio_server import AsyncioServer from artiq.tools import TaskObject, MultilineFormatter diff --git a/artiq/protocols/pc_rpc.py b/artiq/protocols/pc_rpc.py index 17ef89ae2..bb49a9926 100644 --- a/artiq/protocols/pc_rpc.py +++ b/artiq/protocols/pc_rpc.py @@ -20,6 +20,7 @@ import logging import inspect from operator import itemgetter +from artiq.monkey_patches import * from artiq.protocols import pyon from artiq.protocols.asyncio_server import AsyncioServer as _AsyncioServer diff --git a/artiq/protocols/sync_struct.py b/artiq/protocols/sync_struct.py index 3d64450da..6060ca77c 100644 --- a/artiq/protocols/sync_struct.py +++ b/artiq/protocols/sync_struct.py @@ -14,6 +14,7 @@ import asyncio from operator import getitem from functools import partial +from artiq.monkey_patches import * from artiq.protocols import pyon from artiq.protocols.asyncio_server import AsyncioServer