summaryrefslogtreecommitdiff
path: root/Python/errors.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/errors.c
parent4c0dd9f7ff8d58c2da9cccd1ca1ad7ee96e29ce1 (diff)
downloadcpython-1f0eea05f78b032be72ee5b5787421acef61588d.tar.gz
Issue #19235: Add new RecursionError exception. Patch by Georg Brandl.
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 1172c59047..aed2bdc12d 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -319,7 +319,7 @@ finally:
Py_DECREF(*exc);
Py_DECREF(*val);
/* ... and use the recursion error instead */
- *exc = PyExc_RuntimeError;
+ *exc = PyExc_RecursionError;
*val = PyExc_RecursionErrorInst;
Py_INCREF(*exc);
Py_INCREF(*val);