diff options
Diffstat (limited to 'jsonpatch.py')
| -rw-r--r-- | jsonpatch.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/jsonpatch.py b/jsonpatch.py index 5d74f48..59b9016 100644 --- a/jsonpatch.py +++ b/jsonpatch.py @@ -203,10 +203,8 @@ class JsonPatch(object): if not isinstance(other, JsonPatch): return False - if len(self._ops) != len(other._ops): - return False - - return all(map(operator.eq, self._ops, other._ops)) + return len(self._ops) == len(other._ops) and \ + all(map(operator.eq, self._ops, other._ops)) @classmethod |
