diff options
| author | cpopa <devnull@localhost> | 2014-01-09 11:12:15 +0200 |
|---|---|---|
| committer | cpopa <devnull@localhost> | 2014-01-09 11:12:15 +0200 |
| commit | f02fb1f0f582ff8a66cd50e1a08bce5a507a3cdc (patch) | |
| tree | 6eec61b16b812f45ff6669752cd77c9c5794c20d /checkers | |
| parent | 12a7edcc811c921875eb794e5e1e8985fe978c68 (diff) | |
| download | pylint-f02fb1f0f582ff8a66cd50e1a08bce5a507a3cdc.tar.gz | |
Various fixes for #128
Diffstat (limited to 'checkers')
| -rw-r--r-- | checkers/utils.py | 2 |
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)): |
