mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Complete switch cases in symtable.c; fixes bpo-35963 (GH-11821)
This commit is contained in:
parent
3766f18c52
commit
522346d792
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue