summaryrefslogtreecommitdiff
path: root/Lib/json/encoder.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-12-07 02:20:10 -0800
committerGitHub <noreply@github.com>2021-12-07 02:20:10 -0800
commit15da2a2723245710f1bd2c7cbd5b450532ae7728 (patch)
treef5fb1dd2eb7be6a030bb399a186b97475d51eeeb /Lib/json/encoder.py
parentbf1812ef61fe95ae96fbcebd6e384afde57f2790 (diff)
downloadcpython-git-15da2a2723245710f1bd2c7cbd5b450532ae7728.tar.gz
bpo-46001: Change OverflowError to RecursionError in JSON library docstrings (GH-29943)
(cherry picked from commit 8db06528cacc94e67eb1fb2e4c2acc061a515671) Co-authored-by: James Gerity <snoopjedi@gmail.com>
Diffstat (limited to 'Lib/json/encoder.py')
-rw-r--r--Lib/json/encoder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/json/encoder.py b/Lib/json/encoder.py
index c8c78b9c23..21bff2c1a1 100644
--- a/Lib/json/encoder.py
+++ b/Lib/json/encoder.py
@@ -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