mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Use the new normalize function instead of get_code(normalize=True) that was removed in parso.
This commit is contained in:
@@ -348,7 +348,7 @@ def _check_isinstance_type(context, element, search_name):
|
|||||||
is_instance_call = helpers.call_of_leaf(lazy_context_object.data)
|
is_instance_call = helpers.call_of_leaf(lazy_context_object.data)
|
||||||
# Do a simple get_code comparison. They should just have the same code,
|
# Do a simple get_code comparison. They should just have the same code,
|
||||||
# and everything will be all right.
|
# and everything will be all right.
|
||||||
assert is_instance_call.get_code(normalized=True) == call.get_code(normalized=True)
|
assert is_instance_call.normalize() == call.normalize()
|
||||||
except AssertionError:
|
except AssertionError:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user