Skip to content

Commit 69f52d0

Browse files
committed
PYTHON-710, simplify SON's equality operator.
1 parent 686c8fa commit 69f52d0

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 self.to_dict() == other
211+
return dict.__eq__(self, other)
212212

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

0 commit comments

Comments
 (0)