From 08d00607d1847e6c0e9249f58b87496d7774aa71 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Wed, 19 Feb 2020 18:13:11 +0100 Subject: [PATCH] Removed custom encoder in dump method. --- benedict/core/dump.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/benedict/core/dump.py b/benedict/core/dump.py index 7aa3357..9996545 100644 --- a/benedict/core/dump.py +++ b/benedict/core/dump.py @@ -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: