Skip to content

Commit 7501ab9

Browse files
committed
rename wrapper script
1 parent da6c5f2 commit 7501ab9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"""Utility functions for somesy."""
2+
import json
3+
24
import wrapt
35

46

@@ -10,3 +12,7 @@ def json_dump_wrapper(wrapped, instance, args, kwargs):
1012
# set indent to 2 if not set
1113
kwargs["indent"] = kwargs.get("indent", 2)
1214
return wrapped(*args, **kwargs)
15+
16+
17+
# Apply the wrapper
18+
json.dump = json_dump_wrapper(json.dump)

0 commit comments

Comments
 (0)