The normalize function is private for now.

This commit is contained in:
Dave Halter
2017-07-08 14:10:59 +02:00
parent e0485b032e
commit 72b4c8bd9f

View File

@@ -348,7 +348,7 @@ 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()
assert is_instance_call._normalize() == call._normalize()
except AssertionError:
return None