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/utils.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/utils.py')
-rw-r--r-- | pylint/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/utils.py b/pylint/utils.py index f220793..c91497a 100644 --- a/pylint/utils.py +++ b/pylint/utils.py @@ -133,7 +133,7 @@ def category_id(cid): def _decoding_readline(stream, module): return lambda: stream.readline().decode(module.file_encoding, - 'replace') + 'replace') def tokenize_module(module): @@ -818,7 +818,7 @@ class PyLintASTWalker(object): def __init__(self, linter): # callbacks per node types - self.nbstatements = 1 + self.nbstatements = 0 self.visit_events = collections.defaultdict(list) self.leave_events = collections.defaultdict(list) self.linter = linter |