summaryrefslogtreecommitdiffstats
path: root/Python/symtable.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2019-02-11 19:34:50 (GMT)
committerGitHub <noreply@github.com>2019-02-11 19:34:50 (GMT)
commit522346d792d9013140a3f4ad3534ac10f38d9085 (patch)
tree0b0dc3f74cb15ec33b272261d65afb44d2c7f802 /Python/symtable.c
parent3766f18c524c57784eea7c0001602017d2122156 (diff)
downloadcpython-522346d792d9013140a3f4ad3534ac10f38d9085.zip
cpython-522346d792d9013140a3f4ad3534ac10f38d9085.tar.gz
cpython-522346d792d9013140a3f4ad3534ac10f38d9085.tar.bz2
Complete switch cases in symtable.c; fixes bpo-35963 (GH-11821)
Diffstat (limited to 'Python/symtable.c')
-rw-r--r--Python/symtable.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/symtable.c b/Python/symtable.c
index 879e19a..cade304 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -309,6 +309,10 @@ PySymtable_BuildObject(mod_ty mod, PyObject *filename, PyFutureFeatures *future)
PyErr_SetString(PyExc_RuntimeError,
"this compiler does not handle Suites");
goto error;
+ case FunctionType_kind:
+ PyErr_SetString(PyExc_RuntimeError,
+ "this compiler does not handle FunctionTypes");
+ goto error;
}
if (!symtable_exit_block(st, (void *)mod)) {
PySymtable_Free(st);