summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorsylvain thenault <sylvain.thenault@logilab.fr>2009-03-19 11:48:40 +0100
committersylvain thenault <sylvain.thenault@logilab.fr>2009-03-19 11:48:40 +0100
commit8df413be17bde57d16b0d4c6a3fd4617546cfdd4 (patch)
treed243a8eb51a391755f32caa2dafd64dcaf33b6e3 /utils.py
parenta112392fc109cdc17f90ea6c9632f9be04adc929 (diff)
downloadpylint-8df413be17bde57d16b0d4c6a3fd4617546cfdd4.tar.gz
use .fromlineno, not .linenoastng2
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 dc44a59..3257e84 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