1
0
forked from VimPlug/jedi

Move in_which_test_node -> get_corresponding_test_node.

This commit is contained in:
Dave Halter
2017-04-12 08:35:48 +02:00
parent 6190a65f23
commit 7e560bffe8
2 changed files with 5 additions and 5 deletions

View File

@@ -84,7 +84,7 @@ def _break_check(context, context_scope, flow_scope, node):
break
reachable = reachable.invert()
else:
flow_node = flow_scope.in_which_test_node(node)
flow_node = flow_scope.get_corresponding_test_node(node)
if flow_node is not None:
reachable = _check_if(context, flow_node)
elif flow_scope.type in ('try_stmt', 'while_stmt'):