Skip to content

Commit 79df8d7

Browse files
committed
Revert "PYTHON-710, simplify SON's equality operator."
This reverts commit 551e1e3. The change did not work as expected in Jython.
1 parent 6c68762 commit 79df8d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bson/son.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def __eq__(self, other):
208208
"""
209209
if isinstance(other, SON):
210210
return len(self) == len(other) and self.items() == other.items()
211-
return dict.__eq__(self, other)
211+
return self.to_dict() == other
212212

213213
def __ne__(self, other):
214214
return not self == other

0 commit comments

Comments
 (0)