summaryrefslogtreecommitdiff
path: root/checkers/variables.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2009-03-18 10:32:48 +0100
committerSylvain Thénault <sylvain.thenault@logilab.fr>2009-03-18 10:32:48 +0100
commit2ac99b2a24d44a3b56c035a889f6bd78f4f41b7f (patch)
treefe84ef275a37c60aa2b724d6f16dab3b09b97ab8 /checkers/variables.py
parentaaf880d70a2b4a4d8a1e37dbe37dfb8d25f5ee17 (diff)
downloadpylint-git-2ac99b2a24d44a3b56c035a889f6bd78f4f41b7f.tar.gz
give stmt node, not function node,~ to get correct line number
--HG-- branch : astng2
Diffstat (limited to 'checkers/variables.py')
-rw-r--r--checkers/variables.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/variables.py b/checkers/variables.py
index eece8f673..19ccd5671 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)