Complete switch cases in symtable.c; fixes bpo-35963 (GH-11821)

This commit is contained in:
Guido van Rossum 2019-02-11 11:34:50 -08:00 committed by GitHub
parent 3766f18c52
commit 522346d792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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);