Skip to content

Commit ed65618

Browse files
committed
Keep things simple
1 parent edf8700 commit ed65618

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

jsonpatch.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,7 @@ def __hash__(self):
240240
def __eq__(self, other):
241241
if not isinstance(other, JsonPatch):
242242
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-
return False
249-
return True
243+
return self._ops == other._ops
250244

251245
def __ne__(self, other):
252246
return not(self == other)

0 commit comments

Comments
 (0)