Your message dated Tue, 31 Oct 2017 21:01:04 +0100
with message-id <[email protected]>
and subject line Re: flake8: cannot check python2 code
has caused the Debian Bug report #878418,
regarding flake8: cannot check python2 code
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
878418: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878418
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Tags: wontfix

Hi,

yes, cmd from flake8 binary package is just for Python3.

You can use:

python -m flake8 aaa.py

And because Python 2 is obsolete and we will remove it from Debian later, i 
consider this correct solution.

--
Best regards
  Ondřej Nový <[email protected]>
  PGP: 3D98 3C52 EB85 980C 46A5  6090 3573 1255 9D1E 064B

Attachment: signature.asc
Description: Message signed with OpenPGP


--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to