Skip to content
Snippets Groups Projects
Commit f70a3716 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

MAINT: replaced xor operator with != for readability

parent 9b3d756a
No related branches found
No related tags found
2 merge requests!107ENH: add entity getters and cached functions,!103Improving the compare_entities functions
......@@ -266,8 +266,8 @@ def compare_entities(old_entity: Entity, new_entity: Entity,
if not old_entity_attr_exists and not new_entity_attr_exists:
continue
if ((old_entity_attr_exists ^ new_entity_attr_exists)
or (oldattr != newattr)):
if ((old_entity_attr_exists != new_entity_attr_exists)
or (oldattr != newattr)):
if old_entity_attr_exists:
olddiff[attr] = oldattr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment