1
0
forked from VimPlug/jedi

Remove print statements and reenable the if statement scanning that allows names to get resolved in 'if 0:' clauses. Makes all tests work again.

This commit is contained in:
Dave Halter
2015-07-01 14:00:50 +02:00
parent d739828a4b
commit 80492265cf
3 changed files with 0 additions and 7 deletions

View File

@@ -41,12 +41,10 @@ def break_check(evaluator, base_scope, stmt, origin_scope=None):
# e.g. `if 0:` would cause all name lookup within the flow make
# unaccessible. This is not a "problem" in Python, because the code is
# never called. In Jedi though, we still want to infer types.
"""
while origin_scope is not None:
if element_scope == origin_scope:
return REACHABLE
origin_scope = origin_scope.parent
"""
x = _break_check(evaluator, stmt, base_scope, element_scope)
return x