Bugfix: Don't require matching identifiers to match up collections.

I changed this in some other places in the code before committing but this part stayed broken. Collections will match on order, type, and number of elements (pushing the problem to UI) - element identifiers can be different but will be preserved when possible.
This commit is contained in:
John Chilton
2014-05-07 15:39:03 -05:00
parent 3688e02475
commit 7ad72439ce
@@ -63,9 +63,6 @@ class Tree( object ):
return False
for my_child, other_child in zip( self.children, other_structure.children ):
if my_child[ 0 ] != other_child[ 0 ]: # Different identifiers, TODO: generalize
return False
# At least one is nested collection...
if my_child[ 1 ].is_leaf != other_child[ 1 ].is_leaf:
return False