diff options
author | Alex Pinkney <alex.pinkney@geneity.co.uk> | 2015-11-03 17:04:12 +0000 |
---|---|---|
committer | Alex Pinkney <alex.pinkney@geneity.co.uk> | 2015-11-03 17:04:12 +0000 |
commit | 3f2328eb63507fe78a48c27cf677a6998f3c9f63 (patch) | |
tree | 56a0bc7041eb1924416a631b547a91a7ebf885c2 /jsonpatch.py | |
parent | 99bf6166a4a52317a1a18e30b09cc1214fb46921 (diff) | |
download | python-json-patch-3f2328eb63507fe78a48c27cf677a6998f3c9f63.tar.gz |
Fix bug in _split_by_common_seq using wrong range in right subtree
Diffstat (limited to 'jsonpatch.py')
-rw-r--r-- | jsonpatch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jsonpatch.py b/jsonpatch.py index f62aa94..4ffd50f 100644 --- a/jsonpatch.py +++ b/jsonpatch.py @@ -641,7 +641,7 @@ def _split_by_common_seq(src, dst, bx=(0, -1), by=(0, -1)): (by[0], by[0] + y[0])), _split_by_common_seq(src[x[1]:], dst[y[1]:], (bx[0] + x[1], bx[0] + len(src)), - (bx[0] + y[1], bx[0] + len(dst)))] + (by[0] + y[1], by[0] + len(dst)))] def _compare(path, src, dst, left, right): |