pyflakes native support for Python 3
Bug #989203 reported by
Barry Warsaw
This bug affects 16 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pyflakes |
Fix Released
|
Medium
|
Florent |
Bug Description
Let's say you have this file:
#! /usr/bin/python
from __future__ import print_function
import sys
print('test', file=sys.stderr)
then pyflakes correct recognizes the print function and is happy. However, let's say you change the first line to
#!/usr/bin/python3
and remove the future import. Then pyflakes isn't so happy about the print() function.
No doubt it's a considerable amount of work to support Python 3 directly, but at least with this bug we can track that effort.
Related branches
lp:~florent.x/pyflakes/989203-python3
- Pyflakes Dev: Pending requested
-
Diff: 814 lines (+215/-149)9 files modified.travis.yml (+5/-1)
pyflakes/checker.py (+128/-96)
pyflakes/reporter.py (+11/-7)
pyflakes/scripts/pyflakes.py (+7/-5)
pyflakes/test/harness.py (+2/-2)
pyflakes/test/test_imports.py (+23/-17)
pyflakes/test/test_script.py (+28/-15)
pyflakes/test/test_undefined_names.py (+9/-6)
setup.py (+2/-0)
Superseded
for merging
into
lp:~divmod-dev/pyflakes/trunk
- Divmod-dev: Pending requested
-
Diff: 814 lines (+215/-149)9 files modified.travis.yml (+5/-1)
pyflakes/checker.py (+128/-96)
pyflakes/reporter.py (+11/-7)
pyflakes/scripts/pyflakes.py (+7/-5)
pyflakes/test/harness.py (+2/-2)
pyflakes/test/test_imports.py (+23/-17)
pyflakes/test/test_script.py (+28/-15)
pyflakes/test/test_undefined_names.py (+9/-6)
setup.py (+2/-0)
lp:~pyflakes-dev/pyflakes/989203-python3-handlers
- Pyflakes Dev: Pending requested
-
Diff: 201 lines (+113/-4)4 files modifiedpyflakes/checker.py (+5/-4)
pyflakes/test/test_imports.py (+4/-0)
pyflakes/test/test_other.py (+80/-0)
pyflakes/test/test_undefined_names.py (+24/-0)
Changed in pyflakes: | |
importance: | Undecided → Medium |
assignee: | nobody → Florent (florent.x) |
Changed in pyflakes: | |
status: | Confirmed → In Progress |
Changed in pyflakes: | |
status: | In Progress → Fix Committed |
Changed in pyflakes: | |
status: | Fix Committed → Fix Released |
Changed in pyflakes: | |
milestone: | none → 0.6.1 |
To post a comment you must log in.
This branch brings Python 3 support https:/ /github. com/florentx/ pyflakes
It is based on version 0.5 from lp:divmod.org