summaryrefslogtreecommitdiff
path: root/pylint/checkers/variables.py
diff options
context:
space:
mode:
authorRadu Ciorba <radu@devrandom.ro>2015-03-31 22:43:26 +0300
committerRadu Ciorba <radu@devrandom.ro>2015-03-31 22:43:26 +0300
commit05e723db5178fd7d49de3ec19e8b0bb28871a988 (patch)
treecdfd4a54b2ca3d3fd67436ea203d6f3985288109 /pylint/checkers/variables.py
parent3da335cc152191fb9f84bc3249d81951dfc9bb71 (diff)
downloadpylint-unused-import.tar.gz
fix indentation, add changelog entryunused-import
Diffstat (limited to 'pylint/checkers/variables.py')
-rw-r--r--pylint/checkers/variables.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py
index db99e97..8653d54 100644
--- a/pylint/checkers/variables.py
+++ b/pylint/checkers/variables.py
@@ -792,8 +792,8 @@ builtins. Remember that you should avoid to define new builtins when possible.'
# mark the name as consumed if it's defined in this scope
found_node = to_consume.get(name)
if (found_node
- and isinstance(node.parent, astroid.Assign)
- and node.parent == found_node[0].parent):
+ and isinstance(node.parent, astroid.Assign)
+ and node.parent == found_node[0].parent):
lhs = found_node[0].parent.targets[0]
if lhs.name == name: # this name is defined in this very statement
found_node = None