This commit is contained in:
Benjamin Peterson 2016-07-14 22:02:09 -07:00
commit ce7b27d169
3 changed files with 8 additions and 3 deletions

View file

@ -4249,7 +4249,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;
}