We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1964607 commit 82ac779Copy full SHA for 82ac779
jsonpatch.py
@@ -188,18 +188,7 @@ def make_patch(src, dst):
188
True
189
"""
190
191
- # TODO: fix patch optimiztion and remove the following check
192
- # fix when patch with optimization is incorrect
193
- patch = JsonPatch.from_diff(src, dst)
194
- try:
195
- new = patch.apply(src)
196
- except JsonPatchConflict: # see TODO
197
- return JsonPatch.from_diff(src, dst, False)
198
-
199
- if new != dst:
200
201
202
- return patch
+ return JsonPatch.from_diff(src, dst)
203
204
205
class JsonPatch(object):
0 commit comments