Trying to fix issues with for loops and += operators.

This commit is contained in:
Dave Halter
2015-10-15 03:00:50 +02:00
parent 62468fb402
commit 4b85d342ea
2 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ class NameFinder(object):
scope = scope.parent
if isinstance(scope, tree.IsScope) or scope is None:
break
elif isinstance(scope, tree.IfStmt):
elif isinstance(scope, (tree.IfStmt, tree.ForStmt)):
try:
name_dict = self._evaluator.predefined_if_name_dict_dict[scope]
types = set(name_dict[str(self.name_str)])