summaryrefslogtreecommitdiff
path: root/serial/aio.py
diff options
context:
space:
mode:
Diffstat (limited to 'serial/aio.py')
-rw-r--r--serial/aio.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/serial/aio.py b/serial/aio.py
index 476959a..7e16545 100644
--- a/serial/aio.py
+++ b/serial/aio.py
@@ -17,6 +17,8 @@ implementation. It should be possible to get that working though.
"""
import asyncio
import serial
+import logger
+
class SerialTransport(asyncio.Transport):
def __init__(self, loop, protocol, serial_instance):
@@ -80,6 +82,7 @@ class SerialTransport(asyncio.Transport):
#~ def write_eof(self):
#~ def abort(self):
+
@asyncio.coroutine
def create_serial_connection(loop, protocol_factory, *args, **kwargs):
ser = serial.Serial(*args, **kwargs)