diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-04-02 17:13:07 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-04-02 17:13:07 +0300 |
commit | e753a21c82b0b247644d422c99ae0752518a1e4e (patch) | |
tree | 5a13b234b7d7a83cfd9f5f481bcddc6bfc79ecbe /pylint/checkers/variables.py | |
parent | 05e723db5178fd7d49de3ec19e8b0bb28871a988 (diff) | |
parent | a018224550059ab7144f5e504943a37196c36d34 (diff) | |
download | pylint-e753a21c82b0b247644d422c99ae0752518a1e4e.tar.gz |
Merged in raduciorba/pylint/unused-import (pull request #244)
#475 fix unused-import false positive when the import is used in a class assignment
Diffstat (limited to 'pylint/checkers/variables.py')
-rw-r--r-- | pylint/checkers/variables.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py index 8653d54..c813727 100644 --- a/pylint/checkers/variables.py +++ b/pylint/checkers/variables.py @@ -425,7 +425,7 @@ builtins. Remember that you should avoid to define new builtins when possible.' msg = "%s imported as %s" % (imported_name, as_name) self.add_message('unused-import', args=msg, node=stmt) elif (isinstance(stmt, astroid.From) - and stmt.modname != '__future__'): + and stmt.modname != '__future__'): if SPECIAL_OBJ.search(imported_name): # Filter special objects (__doc__, __all__) etc., |