Skip to content

Commit

Permalink
Merge pull request #10 from emontnemery/lint
Browse files Browse the repository at this point in the history
Fix lint errors, add python 3.5 and 3.6 to tox
  • Loading branch information
Johan Bloemberg authored Nov 1, 2018
2 parents d29be91 + 060eca8 commit 88c7a8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rflink/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
CONTROL_COMMAND = '[A-Z]+(=[A-Z0-9]+)?'
DATA = '[a-zA-Z0-9;=_]+'
RESPONSES = 'OK'
VERSION = '[0-9a-zA-Z\ \.-]+'
VERSION = r'[0-9a-zA-Z\ \.-]+'

# 10;NewKaku;0cac142;3;ON;
PACKET_COMMAND = DELIM.join(['10', PROTOCOL, ADDRESS, BUTTON, COMMAND])
Expand Down
6 changes: 5 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ def stop():
yield from asyncio.sleep(0.1)
loop.stop()
loop = asyncio.get_event_loop()
asyncio.async(stop(), loop=loop)
if hasattr(asyncio, 'ensure_future'):
ensure_future = asyncio.ensure_future
else: # Deprecated since Python 3.4.4
ensure_future = getattr(asyncio, "async")
ensure_future(stop(), loop=loop)

# use simulation interface
args = ['--port', 'loop://', '-v']
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py34,py35,lint,typing
envlist = py34,py35,py36,py37,lint,typing
skip_missing_interpreters = True

[testenv]
Expand Down

0 comments on commit 88c7a8c

Please sign in to comment.