From d82e469048e0e034d8c0020cd33b733be1adf68b Mon Sep 17 00:00:00 2001 From: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com> Date: Wed, 4 Mar 2020 19:16:47 +0300 Subject: bpo-39639: Remove the AST "Suite" node and associated code (GH-18513) The AST "Suite" node is no longer used and it can be removed from the ASDL definition and related structures (compiler, visitors, ...). Co-Authored-By: Victor Stinner Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com> Co-authored-by: Pablo Galindo --- Python/compile.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index bf8c8109d07..f603e3d29e5 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1862,10 +1862,6 @@ compiler_mod(struct compiler *c, mod_ty mod) VISIT_IN_SCOPE(c, expr, mod->v.Expression.body); addNone = 0; break; - case Suite_kind: - PyErr_SetString(PyExc_SystemError, - "suite should not be possible"); - return 0; default: PyErr_Format(PyExc_SystemError, "module kind %d should not be possible", -- cgit v1.2.3