diff options
author | David Carlier <dcarlier@afilias.info> | 2019-05-17 23:46:22 (GMT) |
---|---|---|
committer | Cheryl Sabella <cheryl.sabella@gmail.com> | 2019-05-17 23:46:22 (GMT) |
commit | 27ee0f8551a6d576a65e20da90acf9f3cb412c35 (patch) | |
tree | 1c00bfad59680bc22ebf0bf0b49a88fd91375b6f /Python | |
parent | e7b1136ec3b40d174d71f2195cceaadf4fe9539c (diff) | |
download | cpython-27ee0f8551a6d576a65e20da90acf9f3cb412c35.zip cpython-27ee0f8551a6d576a65e20da90acf9f3cb412c35.tar.gz cpython-27ee0f8551a6d576a65e20da90acf9f3cb412c35.tar.bz2 |
Fix couple of dead code paths (GH-7418)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ast.c | 3 | ||||
-rw-r--r-- | Python/compile.c | 1 |
2 files changed, 0 insertions, 4 deletions
diff --git a/Python/ast.c b/Python/ast.c index 03da4e7..abc8d89 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -2971,7 +2971,6 @@ ast_for_expr(struct compiling *c, const node *n) return Compare(expression, ops, cmps, LINENO(n), n->n_col_offset, n->n_end_lineno, n->n_end_col_offset, c->c_arena); } - break; case star_expr: return ast_for_starred(c, n); @@ -3618,7 +3617,6 @@ alias_for_import_name(struct compiling *c, const node *n, int store) return NULL; return a; } - break; case dotted_name: if (NCH(n) == 1) { node *name_node = CHILD(n, 0); @@ -3669,7 +3667,6 @@ alias_for_import_name(struct compiling *c, const node *n, int store) } return alias(str, NULL, c->c_arena); } - break; case STAR: str = PyUnicode_InternFromString("*"); if (!str) diff --git a/Python/compile.c b/Python/compile.c index 2a086a5..b20548c 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -4868,7 +4868,6 @@ compiler_visit_expr1(struct compiler *c, expr_ty e) return compiler_error(c, "can't use starred expression here"); } - break; case Name_kind: return compiler_nameop(c, e->v.Name.id, e->v.Name.ctx); /* child nodes of List and Tuple will have expr_context set */ |