summaryrefslogtreecommitdiff
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-07-03 01:04:23 -0400
committerYury Selivanov <yselivanov@sprymix.com>2015-07-03 01:04:23 -0400
commit1f0eea05f78b032be72ee5b5787421acef61588d (patch)
treedf649dbdcb14e9a2afce0d6e4629439dd72e1421 /Python/ceval.c
parent4c0dd9f7ff8d58c2da9cccd1ca1ad7ee96e29ce1 (diff)
downloadcpython-1f0eea05f78b032be72ee5b5787421acef61588d.tar.gz
Issue #19235: Add new RecursionError exception. Patch by Georg Brandl.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 12df0fe3fc..e68ae33bfd 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -737,7 +737,7 @@ _Py_CheckRecursiveCall(const char *where)
if (tstate->recursion_depth > recursion_limit) {
--tstate->recursion_depth;
tstate->overflowed = 1;
- PyErr_Format(PyExc_RuntimeError,
+ PyErr_Format(PyExc_RecursionError,
"maximum recursion depth exceeded%s",
where);
return -1;