diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-07-03 01:10:11 -0400 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-07-03 01:10:11 -0400 |
commit | bb215e23004af8e8105fae4e132a63b0c25ea47c (patch) | |
tree | 1e0023f5f39b23e58178ffeb992ac5e2264ff1e9 /Python/symtable.c | |
parent | 1c5e5a89b4bc1a7b9dbd0375fbd76dfdadcb8605 (diff) | |
parent | f488fb422a641aa7c38eb63c09f459e4baff7bc4 (diff) | |
download | cpython-git-bb215e23004af8e8105fae4e132a63b0c25ea47c.tar.gz |
Merge 3.5 (Issue #19235)
Diffstat (limited to 'Python/symtable.c')
-rw-r--r-- | Python/symtable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/symtable.c b/Python/symtable.c index 3677e59748..354b799678 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -1135,7 +1135,7 @@ static int symtable_visit_stmt(struct symtable *st, stmt_ty s) { if (++st->recursion_depth > st->recursion_limit) { - PyErr_SetString(PyExc_RuntimeError, + PyErr_SetString(PyExc_RecursionError, "maximum recursion depth exceeded during compilation"); VISIT_QUIT(st, 0); } @@ -1357,7 +1357,7 @@ static int symtable_visit_expr(struct symtable *st, expr_ty e) { if (++st->recursion_depth > st->recursion_limit) { - PyErr_SetString(PyExc_RuntimeError, + PyErr_SetString(PyExc_RecursionError, "maximum recursion depth exceeded during compilation"); VISIT_QUIT(st, 0); } |