summaryrefslogtreecommitdiff
path: root/checkers/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'checkers/utils.py')
-rw-r--r--checkers/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/utils.py b/checkers/utils.py
index a193220..7387711 100644
--- a/checkers/utils.py
+++ b/checkers/utils.py
@@ -156,7 +156,7 @@ def is_defined_before(var_node):
if expr.parent_of(var_node):
break
if (vars and
- not isinstance(vars, astroid.AssAttr) and
+ isinstance(vars, astroid.AssName) and
vars.name == varname):
return True
elif isinstance(_node, (astroid.Lambda, astroid.Function)):