Some isinstance/flow analysis improvements.

This commit is contained in:
Dave Halter
2016-11-29 18:19:15 +01:00
parent 5b81a2375d
commit ba52ecd0df
4 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ UNSURE = Status(None, 'unsure')
def _get_flow_scopes(node):
while True:
node = node.get_parent_scope(include_flows=True)
if node.type in ('funcdef', 'classdef', 'file_input'):
if node is None or node.is_scope():
return
yield node