diff options
author | Igor Tkach <igor.tkach@percolate.com> | 2019-06-28 13:08:03 -0400 |
---|---|---|
committer | Igor Tkach <igor.tkach@percolate.com> | 2019-06-28 13:09:20 -0400 |
commit | 1b83d63088d0af707c4cb1361001ea3cf714a38a (patch) | |
tree | 35516dc90ded56f6e265901d2dd499465e9b041b /jsonpatch.py | |
parent | 2990bb3d686c09a1550083336365e99247297711 (diff) | |
download | python-json-patch-1b83d63088d0af707c4cb1361001ea3cf714a38a.tar.gz |
Fix move for numeric dictionary keys (issue #97)
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 4f8a02b..bf6a1b5 100644 --- a/jsonpatch.py +++ b/jsonpatch.py @@ -717,7 +717,7 @@ class DiffBuilder(object): index = self.take_index(item, _ST_REMOVE) if index is not None: op = index[2] - if type(op.key) == int: + if type(op.key) == int and type(key) == int: for v in self.iter_from(index): op.key = v._on_undo_remove(op.path, op.key) |