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:
A. Jesse Jiryu Davis 2014-06-19 14:11:45 -04:00
parent 825f779a1a
commit 468bec6c32

View File

@ -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