diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2009-03-19 11:48:40 +0100 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2009-03-19 11:48:40 +0100 |
commit | a081c9f3779e1103e8c69ee9c46f3a424b2bbe84 (patch) | |
tree | 67d2b23a0e2cc1dd70c2aea7f1186a524a970357 /utils.py | |
parent | 6980f02d07fd86ec3d9b6e8cd20750c2dc095388 (diff) | |
download | pylint-git-a081c9f3779e1103e8c69ee9c46f3a424b2bbe84.tar.gz |
use .fromlineno, not .lineno
--HG--
branch : astng2
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 |