From 1d2980cd2db3755d63874bfe0d627f5e6675cdd0 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 3 Nov 2014 18:27:31 +0100 Subject: [PATCH] Remove a flow information thing for now. --- jedi/evaluate/finder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/evaluate/finder.py b/jedi/evaluate/finder.py index 542f5fa8..f19dfa65 100644 --- a/jedi/evaluate/finder.py +++ b/jedi/evaluate/finder.py @@ -439,7 +439,7 @@ def check_flow_information(evaluator, flow, search_name_part, pos): break if isinstance(flow, pr.Flow) and not result: - if flow.command in ['if', 'while'] and len(flow.inputs) == 1: + if isinstance(flow, (pr.IfStmt, pr.WhileStmt)) and False and len(flow.inputs) == 1: result = _check_isinstance_type(evaluator, flow.inputs[0], search_name_part) return result