diff options
author | Stefan Kögl <stefan@skoegl.net> | 2015-11-03 20:01:41 +0100 |
---|---|---|
committer | Stefan Kögl <stefan@skoegl.net> | 2015-11-03 20:02:17 +0100 |
commit | 46ad04c19bef126088a42d15f63d4b3f974dca15 (patch) | |
tree | 268b2646b8062e692180c5b704ed592ec6845ce3 | |
parent | 2a02d21d7bf7e017376b3e6f08d38e71343f6b98 (diff) | |
parent | 3f2328eb63507fe78a48c27cf677a6998f3c9f63 (diff) | |
download | python-json-patch-46ad04c19bef126088a42d15f63d4b3f974dca15.tar.gz |
Merge pull request #46 from apinkney97/master, fixes #40
Fix bug in _split_by_common_seq using wrong range in right subtree
-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): |