[Python-checkins] cpython (2.7): Issue #24540: fix typo in json.dumps docstring

ned.deily python-checkins at python.org
Sun Jul 5 20:46:36 CEST 2015


https://hg.python.org/cpython/rev/803520a8db94
changeset:   96837:803520a8db94
branch:      2.7
parent:      96829:756876e059cb
user:        Ned Deily <nad at acm.org>
date:        Sun Jul 05 11:43:59 2015 -0700
summary:
  Issue #24540: fix typo in json.dumps docstring

files:
  Lib/json/__init__.py |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Lib/json/__init__.py b/Lib/json/__init__.py
--- a/Lib/json/__init__.py
+++ b/Lib/json/__init__.py
@@ -195,10 +195,11 @@
         encoding='utf-8', 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``, ``unicode``, ``int``, ``long``, ``float``, ``bool``, ``None``)
     will be skipped instead of raising a ``TypeError``.
 
+
     If ``ensure_ascii`` is false, all non-ASCII characters are not escaped, and
     the return value may be a ``unicode`` instance. See ``dump`` for details.
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list