Revert "PYTHON-710, simplify SON's equality operator."
This reverts commit 551e1e3edf.
The change did not work as expected in Jython.
This commit is contained in:
parent
825f779a1a
commit
468bec6c32
@ -211,7 +211,7 @@ class SON(dict):
|
||||
"""
|
||||
if isinstance(other, SON):
|
||||
return len(self) == len(other) and self.items() == other.items()
|
||||
return dict.__eq__(self, other)
|
||||
return self.to_dict() == other
|
||||
|
||||
def __ne__(self, other):
|
||||
return not self == other
|
||||
|
||||
Loading…
Reference in New Issue
Block a user