Skip to content

Commit acaf3b1

Browse files
committed
remove redundant grammar rule
1 parent fcf129f commit acaf3b1

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

Grammar/python.gram

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,6 @@ expression[expr_ty] (memo):
718718

719719
if_expression[expr_ty]:
720720
| a=disjunction 'if' b=disjunction 'else' c=expression { _PyAST_IfExp(b, a, c, EXTRA) }
721-
| invalid_if_expression
722721

723722
yield_expr[expr_ty]:
724723
| 'yield' 'from' a=expression { _PyAST_YieldFrom(a, EXTRA) }

Parser/parser.c

Lines changed: 1 addition & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)