summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 59f8896..2d3b571 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -8652,12 +8652,7 @@ assemble(struct compiler *c, int addNone)
if (maxdepth < 0) {
goto error;
}
- if (maxdepth > MAX_ALLOWED_STACK_USE) {
- PyErr_Format(PyExc_SystemError,
- "excessive stack use: stack is %d deep",
- maxdepth);
- goto error;
- }
+ /* TO DO -- For 3.12, make sure that `maxdepth <= MAX_ALLOWED_STACK_USE` */
if (label_exception_targets(entryblock)) {
goto error;