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 /checkers/imports.py | |
parent | a112392fc109cdc17f90ea6c9632f9be04adc929 (diff) | |
download | pylint-astng2.tar.gz |
use .fromlineno, not .linenoastng2
Diffstat (limited to 'checkers/imports.py')
-rw-r--r-- | checkers/imports.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/checkers/imports.py b/checkers/imports.py index 293172c..f7f8122 100644 --- a/checkers/imports.py +++ b/checkers/imports.py @@ -326,7 +326,7 @@ given file (report R0402 must not be disabled)'} first = get_first_import(frame, name, basename, level) if isinstance(first, (astng.Import, astng.From)) and first is not node \ and not are_exclusive(first, node): - self.add_message('W0404', node=node, args=(name, first.lineno)) + self.add_message('W0404', node=node, args=(name, first.fromlineno)) else: root = node.root() if root is frame: @@ -336,7 +336,7 @@ given file (report R0402 must not be disabled)'} return if first is not node and not are_exclusive(first, node): self.add_message('W0404', node=node, - args=(name, first.lineno)) + args=(name, first.fromlineno)) def report_external_dependencies(self, sect, _, dummy): |