diff options
author | Alexander Shorin <kxepal@apache.org> | 2013-11-12 08:42:44 +0400 |
---|---|---|
committer | Alexander Shorin <kxepal@apache.org> | 2013-11-12 08:42:44 +0400 |
commit | ed65618d8233be5333d8fd26621d24a0d5d8ac7e (patch) | |
tree | a97572c429217dccd36e351e0ebb3901d50f107d /jsonpatch.py | |
parent | edf8700771dd69325f4bd4b7d072f26149ff1c41 (diff) | |
download | python-json-patch-ed65618d8233be5333d8fd26621d24a0d5d8ac7e.tar.gz |
Keep things simple
Diffstat (limited to 'jsonpatch.py')
-rw-r--r-- | jsonpatch.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/jsonpatch.py b/jsonpatch.py index 074fcb9..5b7c86f 100644 --- a/jsonpatch.py +++ b/jsonpatch.py @@ -240,13 +240,7 @@ class JsonPatch(object): def __eq__(self, other): if not isinstance(other, JsonPatch): return False - - for lop, rop in zip_longest(self._ops, other._ops): - if lop is None or rop is None: - return False - if lop != rop: - return False - return True + return self._ops == other._ops def __ne__(self, other): return not(self == other) |