summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2006-09-25 16:16:17 +0200
committerSylvain Thénault <sylvain.thenault@logilab.fr>2006-09-25 16:16:17 +0200
commit2e68e3cc3abb7096715b87577092471180708222 (patch)
tree2378d4953e471d317dd9003295749c8d72972bc3 /utils.py
parent997df1b780aaa30bbcee159504ca01a0f193841d (diff)
downloadpylint-git-2e68e3cc3abb7096715b87577092471180708222.tar.gz
fixed python \>= 2.4 format false positive with multiple lines statement
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.py b/utils.py
index 4a4488e86..c71c40e54 100644
--- a/utils.py
+++ b/utils.py
@@ -228,7 +228,7 @@ class MessagesHandlerMixIn:
provide the line argument.
"""
if line is None and node is not None:
- line = node.lineno or node.statement().lineno
+ line = node.fromlineno#lineno or node.statement().lineno
#if not isinstance(node, Module):
# assert line > 0, node.__class__
# should this message be displayed