diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2009-03-17 10:14:29 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2009-03-17 10:14:29 +0100 |
commit | 1f219f38a7d2db9d8deb8db25f153e5b3f1ff75b (patch) | |
tree | cb39a65d826aa82bc3ffec2d25058f02559c5000 /checkers/variables.py | |
parent | e3fa5e8dbdb0f4361e84c5d836d9616a8413ba4a (diff) | |
download | pylint-1f219f38a7d2db9d8deb8db25f153e5b3f1ff75b.tar.gz |
fromlineno *must not be zero* either
Diffstat (limited to 'checkers/variables.py')
-rw-r--r-- | checkers/variables.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/variables.py b/checkers/variables.py index 2da9d70..8bef88c 100644 --- a/checkers/variables.py +++ b/checkers/variables.py @@ -337,7 +337,7 @@ builtins. Remember that you should avoid to define new builtins when possible.' name = node.name stmt = node.statement() # probably "is_statement == True" missing somewhere in astng - assert stmt.fromlineno is not None, stmt # fromlineno = 0 is ok + assert stmt.fromlineno, (stmt, node, node.fromlineno) frame = stmt.scope() # if the name node is used as a function default argument's value or as # a decorator, then start from the parent frame of the function instead |