summaryrefslogtreecommitdiff
path: root/checkers/variables.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2009-03-09 10:35:47 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2009-03-09 10:35:47 +0100
commit727099b95bc24f857fe012476b75be46c4d6e38d (patch)
tree752095dfcbc14ee2ccef01119aee2b2062ca9c2c /checkers/variables.py
parent8a2a91fbe529c0bcf083aa85d92a8967199b5e26 (diff)
downloadpylint-727099b95bc24f857fe012476b75be46c4d6e38d.tar.gz
no source_line() / last_source_line() are replaced by fromlineno / tolineno
Diffstat (limited to 'checkers/variables.py')
-rw-r--r--checkers/variables.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/variables.py b/checkers/variables.py
index 3f08444..e7ba88d 100644
--- a/checkers/variables.py
+++ b/checkers/variables.py
@@ -373,7 +373,7 @@ builtins. Remember that you should avoid to define new builtins when possible.'
if defframe.root().lookup(name)[1]:
maybee0601 = False
if (maybee0601
- and stmt.source_line() <= defstmt.source_line()
+ and stmt.fromlineno <= defstmt.fromlineno
and not is_defined_before(node)
and not are_exclusive(stmt, defstmt)):
self.add_message('E0601', args=name, node=node)