| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Restore the multi-line test to chheck output, just in case.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
history
for:
- refactoring the tests
- new assertion method
- withStderr thingy taking *args rather than lambda
- wrapper around creating temporary file with content
- new reporter class with tests
- actually using it in tree
- adding a bunch of tests.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Author: gbrandl, exarkun
Reviewer: exarkun
Fixes: #3005
Convert pyflakes to use the Python 2.5+ _ast module instead of
the older (now essentially unmaintained) compiler package.
Introduce a number of new tests for various edge cases previously
untested, as well, since this involved changing substantial chunks
of pyflakes internals.
Also add support for certain new constructs which will be added
in Python 2.7, including set comprehensions and dict comprehensions.
Because Python 2.4 does not include the _ast module, this change
effectively drops support for running Pyflakes using Python 2.4.
|
| |
|
|
|
|
|
|
|
| |
Author: exarkun
Reviewer: glyph
Fixes: #2902
Handle the `MemoryError` Python 2.4 raises when compiling a string which cannot
be decoded according to its declared encoding.
|
| |
|
|
|
|
|
|
| |
Author: chaica, exarkun
Reviewer: radix
Fixes: #2842
Handle errors in the encoding of a source file.
|
| |
|
|
|
|
|
|
| |
Author: exarkun
Reviewer: jonathanj
Fixes: #2841
Handle permission errors when trying to read source files.
|
| |
|
|
|
|
|
|
|
|
|
| |
Author: exarkun
Reviewer: jonathanj
Fixes: #2885
Use the builtin compile function to check for syntax errors before trying to
construct an ast with the compiler package. The compiler package is less well
able to report such errors (in particular, on Python 2.4 and older, it entirely
misses some syntax errors).
|
| |
|
|
|
|
|
|
|
|
|
|
| |
parsing which do not include line numbers.
Author: dreid
Reviewer: glyph
Fixes #2832
More specifically, this fixes the bug where pyflakes/flymake integration would crash when the user typed a keyword argument before the argument list.
|
| |
|
|
|
|
|
|
|
| |
Author: exarkun
Reviewer: dreid
Fixes: #2821
Handle `SyntaxError`s raised from `compiler.parse` which have multiple lines of
source text associated with them. Only one line is reported.
|
| |
|
|
|
|
|
|
|
| |
Author: pjd
Reviewer: glyph
Fixes #2607
This handles non-existent file paths given to pyflakes, by printing a warning
instead of raising IOError.
|
|
|
Author: exarkun
Reviewer: pjd
Fixes: #2663
Work-around a strangeness in the Python compiler which caused
failures on source with trailing whitespace but no trailing
newline (by adding a trailing newline).
Also, re-organize for the command line `pyflakes` tool into
a real module so that it can be properly unit tested.
|