summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2009-03-19 11:48:40 +0100
committerSylvain Thénault <sylvain.thenault@logilab.fr>2009-03-19 11:48:40 +0100
commita081c9f3779e1103e8c69ee9c46f3a424b2bbe84 (patch)
tree67d2b23a0e2cc1dd70c2aea7f1186a524a970357 /utils.py
parent6980f02d07fd86ec3d9b6e8cd20750c2dc095388 (diff)
downloadpylint-git-a081c9f3779e1103e8c69ee9c46f3a424b2bbe84.tar.gz
use .fromlineno, not .lineno
--HG-- branch : astng2
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/utils.py b/utils.py
index dc44a59c6..3257e8470 100644
--- a/utils.py
+++ b/utils.py
@@ -241,9 +241,7 @@ class MessagesHandlerMixIn:
provide the line argument.
"""
if line is None and node is not None:
- line = node.fromlineno#lineno or node.statement().lineno
- #if not isinstance(node, Module):
- # assert line > 0, node.__class__
+ line = node.fromlineno
# should this message be displayed
if not self.is_message_enabled(msg_id, line):
return