Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error with Python 3.7 #115

Closed
sekiyama58 opened this issue Sep 1, 2018 · 3 comments · Fixed by #116
Closed

Syntax error with Python 3.7 #115

sekiyama58 opened this issue Sep 1, 2018 · 3 comments · Fixed by #116

Comments

@sekiyama58
Copy link

daff causes SyntaxError on launch with Python 3.7.

$ python3 --version
Python 3.7.0
$ pip3 install daff
$ daff
Traceback (most recent call last):
  File "/usr/local/bin/daff", line 7, in <module>
    from daff import main
  File "/usr/local/bin/daff.py", line 2723
    if io.async():
              ^
SyntaxError: invalid syntax
@sekiyama58
Copy link
Author

sekiyama58 commented Sep 1, 2018

In Python 3.7, async is reserved as a keyword, so cannot be used as function name.
Trying to call async() causes a SyntaxError exception.

@paulfitz
Copy link
Owner

paulfitz commented Sep 1, 2018

Thanks for reporting this, working on a fix in #116.

@paulfitz
Copy link
Owner

paulfitz commented Sep 1, 2018

Please reopen if problem persists in version 1.3.33 - cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants