diff options
author | Ned Deily <nad@acm.org> | 2015-07-05 11:46:12 -0700 |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2015-07-05 11:46:12 -0700 |
commit | 14806c4b86196093e2bbe06b61a31a38ecb087a8 (patch) | |
tree | 40b28ef512879066f32c98b19c849c938ea3ce3d | |
parent | da2d51f97aaf630f5ad13aa004a6c5f0175ef780 (diff) | |
parent | 53ecc58bd9da21989ae1811f97248b40e028ccd9 (diff) | |
download | cpython-git-14806c4b86196093e2bbe06b61a31a38ecb087a8.tar.gz |
Issue #24540: merger from 3.5
-rw-r--r-- | Lib/json/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/json/__init__.py b/Lib/json/__init__.py index 6ce9880b26..2612657faf 100644 --- a/Lib/json/__init__.py +++ b/Lib/json/__init__.py @@ -184,7 +184,7 @@ def dumps(obj, skipkeys=False, ensure_ascii=True, check_circular=True, default=None, sort_keys=False, **kw): """Serialize ``obj`` to a JSON formatted ``str``. - If ``skipkeys`` is false then ``dict`` keys that are not basic types + If ``skipkeys`` is true then ``dict`` keys that are not basic types (``str``, ``int``, ``float``, ``bool``, ``None``) will be skipped instead of raising a ``TypeError``. |