summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Shorin <kxepal@apache.org>2013-11-12 08:42:44 +0400
committerAlexander Shorin <kxepal@apache.org>2013-11-12 08:42:44 +0400
commited65618d8233be5333d8fd26621d24a0d5d8ac7e (patch)
treea97572c429217dccd36e351e0ebb3901d50f107d
parentedf8700771dd69325f4bd4b7d072f26149ff1c41 (diff)
downloadpython-json-patch-ed65618d8233be5333d8fd26621d24a0d5d8ac7e.tar.gz
Keep things simple
-rw-r--r--jsonpatch.py8
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)