pyflakes icon indicating copy to clipboard operation
pyflakes copied to clipboard

a faster smurfier pyflakes fork using _ast instead of compiler

Results 19 pyflakes issues
Sort by recently updated
recently updated
newest added

The following code: ``` try: import cPickle as pickle except ImportError: import pickle def foo(): return pickle.dumps ``` Gives the following error: `foo.py:4: redefinition of unused 'pickle' from line 2`....

For example: ``` python def test(a, b): c = do_something(locals()) return True ``` Warning for unused variable should be issued only for c, not also a and b.

``` try: import simplejson as json except ImportError: import json with open('file.json') as fh: json.load(fh) ``` The previous block of code will generate the error "redefinition of unused 'json' from...

``` py class X: def __init__(self, a): pass ``` doesn't throw any warning

When using Pyflakes, I am finding that the vim command line entry text becomes invisible, more specifically, pressing : and then typing, I see the terminal cursor move, but the...

``` def decorator(func): return func @decorator def defined_twice(): pass @decorator def defined_twice(): pass ``` Calling pyflakes on this: ``` > pyflakes twice.py twice.py:10: redefinition of function 'defined_twice' from line 5...

Noticed this issue whilst setting up pyflakes on Snow Leopard: ``` Error detected while processing function 66_RunPyflakes: line 30: Traceback (most recent call last): Error detected while processing function 66_RunPyflakes:...

Editing Windows code in OS X shows an undefined name for the WindowsError exception.

It will be very good to warn about different indentation while copy-pasting or inserting into some indented text if mixed tabs and spaces are used for indentation.