aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-10-05 12:32:00 +0300
committerGitHub <noreply@github.com>2020-10-05 12:32:00 +0300
commitdcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e (patch)
treeb5cd4ca84fa87dc7d91b6709b76d134a84aee6b2 /Python/ceval.c
parentbpo-41557: Update macOS installer to use SQLite 3.33.0 (GH-21959) (diff)
downloadcpython-dcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e.tar.gz
cpython-dcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e.tar.bz2
cpython-dcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e.zip
bpo-41936. Remove macros Py_ALLOW_RECURSION/Py_END_ALLOW_RECURSION (GH-22552)
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 7c6cf83bc9a..500c588e3c2 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -814,9 +814,6 @@ _Py_CheckRecursiveCall(PyThreadState *tstate, const char *where)
return -1;
}
#endif
- if (tstate->recursion_critical)
- /* Somebody asked that we don't check for recursion. */
- return 0;
if (tstate->overflowed) {
if (tstate->recursion_depth > recursion_limit + 50) {
/* Overflowing while handling an overflow. Give up. */