From: Guido van Rossum Date: Mon, 11 Feb 2019 19:34:50 +0000 (-0800) Subject: Complete switch cases in symtable.c; fixes bpo-35963 (GH-11821) X-Git-Tag: v3.8.0a2~90 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=522346d792d9013140a3f4ad3534ac10f38d9085;p=thirdparty%2FPython%2Fcpython.git Complete switch cases in symtable.c; fixes bpo-35963 (GH-11821) --- diff --git a/Python/symtable.c b/Python/symtable.c index 879e19ab79e0..cade3045b3fc 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);