diff options
author | sylvain thenault <sylvain.thenault@logilab.fr> | 2009-03-19 11:48:40 +0100 |
---|---|---|
committer | sylvain thenault <sylvain.thenault@logilab.fr> | 2009-03-19 11:48:40 +0100 |
commit | 8df413be17bde57d16b0d4c6a3fd4617546cfdd4 (patch) | |
tree | d243a8eb51a391755f32caa2dafd64dcaf33b6e3 /utils.py | |
parent | a112392fc109cdc17f90ea6c9632f9be04adc929 (diff) | |
download | pylint-8df413be17bde57d16b0d4c6a3fd4617546cfdd4.tar.gz |
use .fromlineno, not .linenoastng2
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |