diff options
author | Guido van Rossum <guido@python.org> | 2019-02-11 19:34:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-11 19:34:50 (GMT) |
commit | 522346d792d9013140a3f4ad3534ac10f38d9085 (patch) | |
tree | 0b0dc3f74cb15ec33b272261d65afb44d2c7f802 /Python | |
parent | 3766f18c524c57784eea7c0001602017d2122156 (diff) | |
download | cpython-522346d792d9013140a3f4ad3534ac10f38d9085.zip cpython-522346d792d9013140a3f4ad3534ac10f38d9085.tar.gz cpython-522346d792d9013140a3f4ad3534ac10f38d9085.tar.bz2 |
Complete switch cases in symtable.c; fixes bpo-35963 (GH-11821)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/symtable.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/symtable.c b/Python/symtable.c index 879e19a..cade304 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); |