diff options
author | Jure Cerjak <jcerjak@termitnjak.si> | 2017-06-12 11:20:49 +0200 |
---|---|---|
committer | Jure Cerjak <jcerjak@termitnjak.si> | 2017-06-12 11:20:49 +0200 |
commit | 8edc82afcf6f7512b05fba32baa536fe756bd273 (patch) | |
tree | ac3fe9e6565f15d048a81580dbb024041746ea98 /simplejson/encoder.py | |
parent | de28cced9a9a5ff1a7a93eb52bd2a52a01d0476a (diff) | |
download | simplejson-8edc82afcf6f7512b05fba32baa536fe756bd273.tar.gz |
docstring fix in JSONEncoder: use_decimal defaults to True
Diffstat (limited to 'simplejson/encoder.py')
-rw-r--r-- | simplejson/encoder.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simplejson/encoder.py b/simplejson/encoder.py index 226480f..b5c3141 100644 --- a/simplejson/encoder.py +++ b/simplejson/encoder.py @@ -185,7 +185,7 @@ class JSONEncoder(object): transformed into unicode using that encoding prior to JSON-encoding. The default is UTF-8. - If use_decimal is true (not the default), ``decimal.Decimal`` will + If use_decimal is true (default: ``True``), ``decimal.Decimal`` will be supported directly by the encoder. For the inverse, decode JSON with ``parse_float=decimal.Decimal``. |