summaryrefslogtreecommitdiffstats
path: root/Lib/json
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-06-30 11:03:21 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-06-30 11:03:21 (GMT)
commitee047e589d0121e2374111b1b4744c5b0d5c42bf (patch)
tree5e4188544257b4fa168d500c0638a9966f67b7f6 /Lib/json
parent60a7ec3ba0eb6bf7bc582fc507273b875e9478d9 (diff)
parent15287f8bcccdaeb7ae4a58373547c77137966bc1 (diff)
downloadcpython-ee047e589d0121e2374111b1b4744c5b0d5c42bf.zip
cpython-ee047e589d0121e2374111b1b4744c5b0d5c42bf.tar.gz
cpython-ee047e589d0121e2374111b1b4744c5b0d5c42bf.tar.bz2
Issue #4945: Improved the documenting of boolean arguments in the json module.
Based on patch by Gabriel Genellina.
Diffstat (limited to 'Lib/json')
-rw-r--r--Lib/json/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/json/__init__.py b/Lib/json/__init__.py
index 28057dd..f2c0d23 100644
--- a/Lib/json/__init__.py
+++ b/Lib/json/__init__.py
@@ -152,7 +152,7 @@ def dump(obj, fp, *, skipkeys=False, ensure_ascii=True, check_circular=True,
``default(obj)`` is a function that should return a serializable version
of obj or raise TypeError. The default simply raises TypeError.
- If *sort_keys* is ``True`` (default: ``False``), then the output of
+ If *sort_keys* is true (default: ``False``), then the output of
dictionaries will be sorted by key.
To use a custom ``JSONEncoder`` subclass (e.g. one that overrides the
@@ -214,7 +214,7 @@ def dumps(obj, *, skipkeys=False, ensure_ascii=True, check_circular=True,
``default(obj)`` is a function that should return a serializable version
of obj or raise TypeError. The default simply raises TypeError.
- If *sort_keys* is ``True`` (default: ``False``), then the output of
+ If *sort_keys* is true (default: ``False``), then the output of
dictionaries will be sorted by key.
To use a custom ``JSONEncoder`` subclass (e.g. one that overrides the