From 99f71983e7540ebcc7ccfa138064347068cf3524 Mon Sep 17 00:00:00 2001 From: Alexander Shorin Date: Sun, 25 Dec 2011 21:59:52 +0400 Subject: [PATCH] Fix compatibility with Python 3.x --- jsonpatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]):