diff options
author | sylvain thenault <sylvain.thenault@logilab.fr> | 2009-03-18 10:32:48 +0100 |
---|---|---|
committer | sylvain thenault <sylvain.thenault@logilab.fr> | 2009-03-18 10:32:48 +0100 |
commit | 6fe2330f5d97d82496d36bc2a1be4c4e12705819 (patch) | |
tree | 8b1b08982142aab5bce1efbc792469ad1a8a7196 | |
parent | c26c1c027a930c7944710763962159ebafc3f341 (diff) | |
download | pylint-6fe2330f5d97d82496d36bc2a1be4c4e12705819.tar.gz |
give stmt node, not function node,~ to get correct line number
-rw-r--r-- | checkers/variables.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/variables.py b/checkers/variables.py index eece8f6..19ccd56 100644 --- a/checkers/variables.py +++ b/checkers/variables.py @@ -242,7 +242,7 @@ builtins. Remember that you should avoid to define new builtins when possible.' if node.name.startswith('cb_') or \ node.name.endswith('_cb'): continue - self.add_message('W0613', args=name, node=node) + self.add_message('W0613', args=name, node=stmt) else: self.add_message('W0612', args=name, node=stmt) |