summaryrefslogtreecommitdiff
path: root/Lib/json
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-12 22:47:16 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-12 22:47:16 +0200
commite9ac1ba48e87c6cfb4faac29c427ebf33283cd2c (patch)
tree57cfd6a21cafdaf6091a3ec71f545d721930de05 /Lib/json
parentb51bd875193c84e51afb907a0c8ff6091fc95d5f (diff)
downloadcpython-e9ac1ba48e87c6cfb4faac29c427ebf33283cd2c.tar.gz
Fixed the documentation of parse_constant argument in json.load().
parse_constant doesn't get called on 'null', 'true', 'false' since 3.1/2.7.
Diffstat (limited to 'Lib/json')
-rw-r--r--Lib/json/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/json/__init__.py b/Lib/json/__init__.py
index f72b058123..1118b0eb99 100644
--- a/Lib/json/__init__.py
+++ b/Lib/json/__init__.py
@@ -297,7 +297,7 @@ def loads(s, encoding=None, cls=None, object_hook=None, parse_float=None,
for JSON integers (e.g. float).
``parse_constant``, if specified, will be called with one of the
- following strings: -Infinity, Infinity, NaN, null, true, false.
+ following strings: -Infinity, Infinity, NaN.
This can be used to raise an exception if invalid JSON numbers
are encountered.