commit | 033f17c9d5c40fe8b5e55b6ada1d483b612ca092 | [log] [tgz] |
---|---|---|
author | Chris Liechti <cliechti@gmx.net> | Sun Aug 30 21:28:04 2015 +0200 |
committer | Chris Liechti <cliechti@gmx.net> | Sun Aug 30 21:28:04 2015 +0200 |
tree | 5ada169ba7c6a8036357904772075467cda8d4ea | |
parent | 518b0d31aafdb9ea52a47eb850490d652af2ad96 [diff] [blame] |
pep-8 and small cleanups
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 @@ """ import asyncio import serial +import logger + class SerialTransport(asyncio.Transport): def __init__(self, loop, protocol, serial_instance): @@ -80,6 +82,7 @@ #~ def write_eof(self): #~ def abort(self): + @asyncio.coroutine def create_serial_connection(loop, protocol_factory, *args, **kwargs): ser = serial.Serial(*args, **kwargs)