File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -176,10 +176,10 @@ def make_patch(src, dst):
176
176
# fix when patch with optimization is incorrect
177
177
patch = JsonPatch .from_diff (src , dst )
178
178
try :
179
- new = patch .apply (src )
179
+ new = patch .apply (src )
180
180
except JsonPatchConflict : # see TODO
181
181
return JsonPatch .from_diff (src , dst , False )
182
-
182
+
183
183
if new != dst :
184
184
return JsonPatch .from_diff (src , dst , False )
185
185
Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ def test_json_patch(self):
376
376
patch = jsonpatch .make_patch (old , new )
377
377
new_from_patch = jsonpatch .apply_patch (old , patch )
378
378
self .assertEqual (new , new_from_patch )
379
-
379
+
380
380
def test_arrays_one_element_sequences (self ):
381
381
""" Tests the case of multiple common one element sequences inside an array """
382
382
# see https://github.com/stefankoegl/python-json-patch/issues/30#issuecomment-155070128
You can’t perform that action at this time.
0 commit comments