Syntax error with Python 3.7
martino87r opened this issue · comments
martino87r commented
Hi there, while testing with the newly released Python 3.7 importing Janus produces the following exception:
File "/home/martino/github/pystm/pystm/log/execution.py", line 2, in <module>
import janus
File "/home/martino/github/pystm/venv2/lib/python3.7/site-packages/janus/__init__.py", line 19
ensure_future = asyncio.async
^
SyntaxError: invalid syntax
Python 3.7 made async
a reserved keyword, thus it cannot be used
Nikolay Novik commented
Good catch, would you like to submit PR with fix?
SangGyu Lee commented
Nikolay Novik commented
new version available https://pypi.org/project/janus/0.3.2/