Skip to content

Commit 4383968

Browse files
authored
Fixed typos in json docstrings (#161261)
1 parent 64e17b5 commit 4383968

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
@@ -134,7 +134,7 @@ def dump(obj, fp, *, skipkeys=False, ensure_ascii=True, check_circular=True,
134134
135135
If ``check_circular`` is false, then the circular reference check
136136
for container types will be skipped and a circular reference will
137-
result in an ``RecursionError`` (or worse).
137+
result in a ``RecursionError`` (or worse).
138138
139139
If ``allow_nan`` is false, then it will be a ``ValueError`` to
140140
serialize out of range ``float`` values (``nan``, ``inf``, ``-inf``)
@@ -198,7 +198,7 @@ def dumps(obj, *, skipkeys=False, ensure_ascii=True, check_circular=True,
198198
199199
If ``check_circular`` is false, then the circular reference check
200200
for container types will be skipped and a circular reference will
201-
result in an ``RecursionError`` (or worse).
201+
result in a ``RecursionError`` (or worse).
202202
203203
If ``allow_nan`` is false, then it will be a ``ValueError`` to
204204
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)