Skip to content

Commit 29c989e

Browse files
committed
Make DiffBuilder's dumps argument optional
1 parent 1457aaf commit 29c989e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonpatch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ def apply(self, obj):
649649

650650
class DiffBuilder(object):
651651

652-
def __init__(self, dumps):
652+
def __init__(self, dumps=json.dumps):
653653
self.dumps = dumps
654654
self.index_storage = [{}, {}]
655655
self.index_storage2 = [[], []]

0 commit comments

Comments
 (0)