summaryrefslogtreecommitdiff
path: root/Python/symtable.c
diff options
context:
space:
mode:
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 879e19ab79..cade3045b3 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);