summaryrefslogtreecommitdiff
path: root/astroid/node_classes.py
diff options
context:
space:
mode:
Diffstat (limited to 'astroid/node_classes.py')
-rw-r--r--astroid/node_classes.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/astroid/node_classes.py b/astroid/node_classes.py
index 621dc5f2..dfe85b04 100644
--- a/astroid/node_classes.py
+++ b/astroid/node_classes.py
@@ -1149,10 +1149,9 @@ class LookupMixIn:
_stmts = []
_stmt_parents = []
statements = self._get_filtered_node_statements(stmts)
-
for node, stmt in statements:
# line filtering is on and we have reached our location, break
- if stmt.fromlineno > mylineno > 0:
+ if stmt.fromlineno and stmt.fromlineno > mylineno > 0:
break
# Ignore decorators with the same name as the
# decorated function