bpo-46001: Change OverflowError to RecursionError in JSON library docstrings (GH-29943)

This commit is contained in:
James Gerity 2021-12-07 04:58:40 -05:00 committed by GitHub
parent ddbab69b6d
commit 8db06528ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -116,7 +116,7 @@ class JSONEncoder(object):
If check_circular is true, then lists, dicts, and custom encoded
objects will be checked for circular references during encoding to
prevent an infinite recursion (which would cause an OverflowError).
prevent an infinite recursion (which would cause an RecursionError).
Otherwise, no such check takes place.
If allow_nan is true, then NaN, Infinity, and -Infinity will be