Correct positioning for if statements.

This commit is contained in:
Dave Halter
2015-06-29 12:10:01 +02:00
parent db1ed70318
commit 6e44f334d8

View File

@@ -169,7 +169,7 @@ class NameFinder(object):
except KeyError:
continue
else:
if self.name_str.start_pos < scope.end_pos:
if self.name_str.start_pos < scope.children[1].end_pos:
# It doesn't make any sense to check if
# statements in the if statement itself, just
# deliver types.