]> granicus.if.org Git - python/commitdiff
remove dead code (GH-14104)
authorDavid Carlier <dcarlier@afilias.info>
Tue, 18 Jun 2019 06:36:34 +0000 (07:36 +0100)
committerInada Naoki <songofacandy@gmail.com>
Tue, 18 Jun 2019 06:36:34 +0000 (15:36 +0900)
default case ought to handle the "unexpected".

Python/ast.c

index 2a59415721485e3003b9a2cbd6ff5dbb1e30c16f..16895ce62ec01b17d9ee24f9aed50180c45213b5 100644 (file)
@@ -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