[Python-checkins] remove dead code (GH-14104)

Inada Naoki webhook-mailer at python.org
Tue Jun 18 02:36:40 EDT 2019

commit: 9bbece9d7a9d6d38886abeb248e34c96bc08576c
branch: master
author: David Carlier <dcarlier at afilias.info>
committer: Inada Naoki <songofacandy at gmail.com>
date: 2019-06-18T15:36:34+09:00

remove dead code (GH-14104)

default case ought to handle the "unexpected".

M Python/ast.c

diff --git a/Python/ast.c b/Python/ast.c
index 2a5941572148..16895ce62ec0 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -3684,9 +3684,6 @@ alias_for_import_name(struct compiling *c, const node *n, int store)
                          "unexpected import name: %d", TYPE(n));
             return NULL;
-    PyErr_SetString(PyExc_SystemError, "unhandled import name condition");
-    return NULL;
 static stmt_ty

More information about the Python-checkins mailing list