summaryrefslogtreecommitdiff
path: root/jsonpatch.py
diff options
context:
space:
mode:
authorAlexander Shorin <kxepal@gmail.com>2011-12-25 21:59:52 +0400
committerAlexander Shorin <kxepal@gmail.com>2011-12-25 21:59:52 +0400
commit99f71983e7540ebcc7ccfa138064347068cf3524 (patch)
treeba42fd19f9a556128eb0f39812115ec16754772f /jsonpatch.py
parent17c634f6aa425988fcc2795daecac8a0307804e4 (diff)
downloadpython-json-patch-99f71983e7540ebcc7ccfa138064347068cf3524.tar.gz
Fix compatibility with Python 3.x
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]):