Skip to content

Commit 74d8ca5

Browse files
committed
Formatting
1 parent f411c51 commit 74d8ca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Grammar/python.gram

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ invalid_expression:
12651265
| !(NAME STRING | SOFT_KEYWORD) a=disjunction b=expression_without_invalid {
12661266
_PyPegen_raise_error_for_missing_comma(p, a, b) }
12671267
| disjunction 'if' disjunction a=':=' {
1268-
RAISE_SYNTAX_ERROR_KNOWN_LOCATION(a, "assignment expression must be parenthesized inside conditional expression" ) }
1268+
RAISE_SYNTAX_ERROR_KNOWN_LOCATION(a, "assignment expression must be parenthesized inside conditional expression") }
12691269
| a=disjunction 'if' b=disjunction !('else'|':') { RAISE_SYNTAX_ERROR_KNOWN_RANGE(a, b, "expected 'else' after 'if' expression") }
12701270
| a=disjunction 'if' b=disjunction 'else' !expression {
12711271
RAISE_SYNTAX_ERROR_ON_NEXT_TOKEN("expected expression after 'else', but statement is given") }

0 commit comments

Comments
 (0)