summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kögl <stefan@skoegl.net>2013-07-12 16:21:53 +0200
committerStefan Kögl <stefan@skoegl.net>2013-07-12 16:21:53 +0200
commitc781b515ed1a6590c7227ecd7f87fd2c7381366e (patch)
treec42704681bcdf765d003edb25a150b7d9882d89d
parent0286a4e6691907f70afd74c5d417c0c525c2451e (diff)
downloadpython-json-patch-c781b515ed1a6590c7227ecd7f87fd2c7381366e.tar.gz
fix JsonPatch.__eq__(other) for Python 3
-rw-r--r--jsonpatch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jsonpatch.py b/jsonpatch.py
index 59b9016..cd946ce 100644
--- a/jsonpatch.py
+++ b/jsonpatch.py
@@ -203,7 +203,7 @@ class JsonPatch(object):
if not isinstance(other, JsonPatch):
return False
- return len(self._ops) == len(other._ops) and \
+ return len(list(self._ops)) == len(list(other._ops)) and \
all(map(operator.eq, self._ops, other._ops))