summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHynek Schlawack <hs@ox.cx>2012-05-16 18:02:54 +0200
committerHynek Schlawack <hs@ox.cx>2012-05-16 18:02:54 +0200
commit019935f6154a8a2861864c5c3d4f0bcac07784d3 (patch)
tree395a5c568e4df3dede20af111e070c0b35f47a5d
parent38fbd799d1a45aa60454f7cb8b951e4f2b185e91 (diff)
downloadcpython-git-019935f6154a8a2861864c5c3d4f0bcac07784d3.tar.gz
#14692 Fix json docs to reflect changes in json.load
The behaviour of the parse_constant callback changed insofar that 'null', 'true', 'false' don't trigger its call anymore. Patch by Serhiy Storchaka
-rw-r--r--Doc/library/json.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/json.rst b/Doc/library/json.rst
index 6d4497f224..218bf9b832 100644
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -217,8 +217,8 @@ Basic Usage
(e.g. :class:`float`).
*parse_constant*, if specified, will be called with one of the following
- strings: ``'-Infinity'``, ``'Infinity'``, ``'NaN'``, ``'null'``, ``'true'``,
- ``'false'``. This can be used to raise an exception if invalid JSON numbers
+ strings: ``'-Infinity'``, ``'Infinity'``, ``'NaN'``.
+ This can be used to raise an exception if invalid JSON numbers
are encountered.
To use a custom :class:`JSONDecoder` subclass, specify it with the ``cls``