Make sure your pyflakes is running in Python 3. Pyflakes detects syntax errors based on the version of Python it is running from. If you run pyflakes from Python 2 on Python 3-only code, it will complain about syntax errors. The easiest way to do this is to run
Make sure your pyflakes is running in Python 3. Pyflakes detects syntax errors based on the version of Python it is running from. If you run pyflakes from Python 2 on Python 3-only code, it will complain about syntax errors. The easiest way to do this is to run
python3 -m pyflakes yourfile.py