Skip to content

Commit b2e4251

Browse files
[3.15] Fixed typos in json docstrings (GH-161261) (#161352)
(cherry picked from commit 4383968) Co-authored-by: Fie <40601523+Zkaij@users.noreply.github.com>
1 parent bdd3f1c commit b2e4251

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎Lib/json/__init__.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def dump(obj, fp, *, skipkeys=False, ensure_ascii=True, check_circular=True,
133133
134134
If ``check_circular`` is false, then the circular reference check
135135
for container types will be skipped and a circular reference will
136-
result in an ``RecursionError`` (or worse).
136+
result in a ``RecursionError`` (or worse).
137137
138138
If ``allow_nan`` is false, then it will be a ``ValueError`` to
139139
serialize out of range ``float`` values (``nan``, ``inf``, ``-inf``)
@@ -197,7 +197,7 @@ def dumps(obj, *, skipkeys=False, ensure_ascii=True, check_circular=True,
197197
198198
If ``check_circular`` is false, then the circular reference check
199199
for container types will be skipped and a circular reference will
200-
result in an ``RecursionError`` (or worse).
200+
result in a ``RecursionError`` (or worse).
201201
202202
If ``allow_nan`` is false, then it will be a ``ValueError`` to
203203
serialize out of range ``float`` values (``nan``, ``inf``, ``-inf``) in

‎Lib/json/encoder.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def __init__(self, *, skipkeys=False, ensure_ascii=True,
118118
119119
If check_circular is true, then lists, dicts, and custom encoded
120120
objects will be checked for circular references during encoding to
121-
prevent an infinite recursion (which would cause an RecursionError).
121+
prevent an infinite recursion (which would cause a RecursionError).
122122
Otherwise, no such check takes place.
123123
124124
If allow_nan is true, then NaN, Infinity, and -Infinity will be

0 commit comments

Comments
 (0)