We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edf8700 commit ed65618Copy full SHA for ed65618
1 file changed
jsonpatch.py
@@ -240,13 +240,7 @@ def __hash__(self):
240
def __eq__(self, other):
241
if not isinstance(other, JsonPatch):
242
return False
243
-
244
- for lop, rop in zip_longest(self._ops, other._ops):
245
- if lop is None or rop is None:
246
- return False
247
- if lop != rop:
248
249
- return True
+ return self._ops == other._ops
250
251
def __ne__(self, other):
252
return not(self == other)
0 commit comments