From 39cbd003c0ffd3f0046fb52204df5c5d763e0fe9 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sun, 6 Aug 2017 16:43:47 +0200 Subject: [PATCH] A small change in parso changed the normalize API. --- jedi/evaluate/finder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jedi/evaluate/finder.py b/jedi/evaluate/finder.py index fd8704ed..505245b6 100644 --- a/jedi/evaluate/finder.py +++ b/jedi/evaluate/finder.py @@ -348,7 +348,8 @@ def _check_isinstance_type(context, element, search_name): is_instance_call = helpers.call_of_leaf(lazy_context_object.data) # Do a simple get_code comparison. They should just have the same code, # and everything will be all right. - assert is_instance_call._normalize() == call._normalize() + normalize = context.evaluator.grammar._normalize + assert normalize(is_instance_call) == normalize(call) except AssertionError: return None