summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-07-15 05:02:09 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-07-15 05:02:09 (GMT)
commitce7b27d169f0d8383f99e0b73d6057aae6470e27 (patch)
tree3d1b5eb9ac53d299eb81539a0c80c567cfd0f40b /Python/compile.c
parent663dacda4d14b9fe05c14ef1bea07cd61d01909d (diff)
parente09ed5419b84040a6f5d74ec9a3ae4fd9b4bc0e5 (diff)
downloadcpython-ce7b27d169f0d8383f99e0b73d6057aae6470e27.zip
cpython-ce7b27d169f0d8383f99e0b73d6057aae6470e27.tar.gz
cpython-ce7b27d169f0d8383f99e0b73d6057aae6470e27.tar.bz2
merge 3.5 (#27514)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 687b750..e46676c 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -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;
}