Complete switch cases in symtable.c; fixes bpo-35963 (GH-11821)
This commit is contained in:
parent
3766f18c52
commit
522346d792
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue