summaryrefslogtreecommitdiff
path: root/jsonpatch.py
diff options
context:
space:
mode:
Diffstat (limited to 'jsonpatch.py')
-rw-r--r--jsonpatch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jsonpatch.py b/jsonpatch.py
index 5e538dd..8ab5278 100644
--- a/jsonpatch.py
+++ b/jsonpatch.py
@@ -105,7 +105,7 @@ def make_patch(src, dst):
def compare_list(path, src, dst):
lsrc, ldst = len(src), len(dst)
- for idx in reversed(xrange(max(lsrc, ldst))):
+ for idx in reversed(range(max(lsrc, ldst))):
if idx < lsrc and idx < ldst:
current = path + [str(idx)]
for operation in compare_values(current, src[idx], dst[idx]):