summaryrefslogtreecommitdiff
path: root/checkers/utils.py
diff options
context:
space:
mode:
authorcpopa <devnull@localhost>2014-01-09 11:12:15 +0200
committercpopa <devnull@localhost>2014-01-09 11:12:15 +0200
commitf02fb1f0f582ff8a66cd50e1a08bce5a507a3cdc (patch)
tree6eec61b16b812f45ff6669752cd77c9c5794c20d /checkers/utils.py
parent12a7edcc811c921875eb794e5e1e8985fe978c68 (diff)
downloadpylint-f02fb1f0f582ff8a66cd50e1a08bce5a507a3cdc.tar.gz
Various fixes for #128
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)):