diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-07-15 05:00:03 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-07-15 05:00:03 (GMT) |
commit | 6c4fa70da66d7efbf838a93bc69c7bdf2dda65f8 (patch) | |
tree | 74e127bf6f9232792c899ea81ba48a2c14f13a66 /Python/compile.c | |
parent | 65e0d8ca651b3735c6fbb5d91190138d0a87d373 (diff) | |
download | cpython-6c4fa70da66d7efbf838a93bc69c7bdf2dda65f8.zip cpython-6c4fa70da66d7efbf838a93bc69c7bdf2dda65f8.tar.gz cpython-6c4fa70da66d7efbf838a93bc69c7bdf2dda65f8.tar.bz2 |
make too many nested blocks be a SyntaxError instead of a SystemError (closes #27514)
Patch by Ammar Askar.
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index ba93fb4..9c9b236 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -3147,7 +3147,7 @@ compiler_push_fblock(struct compiler *c, enum fblocktype t, basicblock *b) { struct fblockinfo *f; if (c->u->u_nfblocks >= CO_MAXBLOCKS) { - PyErr_SetString(PyExc_SystemError, + PyErr_SetString(PyExc_SyntaxError, "too many statically nested blocks"); return 0; } |