[Python-modules-team] Bug#878418: flake8: cannot check python2 code
Sandro Tosi
morph at debian.org
Fri Oct 13 13:36:44 UTC 2017
Package: flake8
Version: 3.2.1-1
Severity: important
Dear Maintainer,
flake8 switched to be a python3 package, so now the `flake8` program runs under
py3k, that means it cannot check python2 code anymore: f.e. if you run it
against a python2 script containing a `print` statement, flake8 generates a
`E999 SyntaxError: invalid syntax` error.
there is no equivalent flake8-py2 tool, so perfectly valid python2 code cannot
be checked with flake8 unless you explicitly call `python /usr/bin/flake8
/path/to/python2/code.py` which is not user friendly
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.0.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages flake8 depends on:
ii python3 3.5.1-1
ii python3-flake8 3.2.1-1
ii python3-pkg-resources 17.0-1
flake8 recommends no packages.
flake8 suggests no packages.
-- no debconf information
More information about the Python-modules-team
mailing list