1
0
forked from VimPlug/jedi

fix a logic issue in the flow_analysis.Status.__and__

This commit is contained in:
Dave Halter
2014-08-07 03:02:40 +02:00
parent b7151c1ef9
commit d94a70b524

View File

@@ -11,7 +11,7 @@ class Status(object):
def __and__(self, other):
if UNSURE in (self, other):
return other
return UNSURE
else:
return REACHABLE if self._value and other._value else UNREACHABLE
@@ -34,6 +34,8 @@ def break_check(evaluator, base_scope, element_scope):
reachable = Status.lookup_table[values.pop()]
else:
return UNSURE
elif element_scope.command == 'try':
reachable = UNSURE
if base_scope != element_scope and base_scope != element_scope.parent:
return reachable & break_check(evaluator, base_scope, element_scope.parent)