Removed custom encoder in dump method.

This commit is contained in:
Fabio Caccamo 2020-02-19 18:13:11 +01:00
parent 84ced6c68b
commit 08d00607d1
1 changed files with 0 additions and 9 deletions

View File

@ -1,14 +1,6 @@
# -*- coding: utf-8 -*-
from benedict.serializers import JSONSerializer
from benedict.utils import type_util
from six import text_type
def _encoder(obj):
if not type_util.is_json_serializable(obj):
return text_type(obj)
def dump(obj, **kwargs):
@ -16,7 +8,6 @@ def dump(obj, **kwargs):
options = {
'indent': 4,
'sort_keys': True,
'default': _encoder,
}
options.update(**kwargs)
try: