diff options
Diffstat (limited to 'simplejson/__init__.py')
-rw-r--r-- | simplejson/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/simplejson/__init__.py b/simplejson/__init__.py index 81528a5..c36be23 100644 --- a/simplejson/__init__.py +++ b/simplejson/__init__.py @@ -191,7 +191,8 @@ def dump(obj, fp, skipkeys=False, ensure_ascii=True, check_circular=True, if (not skipkeys and ensure_ascii and check_circular and allow_nan and cls is None and indent is None and separators is None and - encoding == 'utf-8' and default is None and not kw): + encoding == 'utf-8' and default is None and not use_decimal + and not kw): iterable = _default_encoder.iterencode(obj) else: if cls is None: |