Skip to content

Commit 431305f

Browse files
committed
Fix dictorsetmaker and testlist_comp
1 parent 1da31d7 commit 431305f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parser/grammar.y

+2-2
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ atom: '(' ')' |
257257
'{' '}' |
258258
'{' dictorsetmaker '}' |
259259
NAME | NUMBER | strings | ELIPSIS | NONE | TRUE | FALSE
260-
testlist_comp: test_or_star_expr comp_for | test_or_star_expr test_or_star_exprs optional_comma
260+
testlist_comp: test_or_star_expr comp_for | test_or_star_exprs optional_comma
261261
trailer: '(' ')' | '(' arglist ')' | '[' subscriptlist ']' | '.' NAME
262262
subscripts: subscript | subscripts ',' subscript
263263
subscriptlist: subscripts optional_comma
@@ -279,7 +279,7 @@ testlist: tests optional_comma
279279
test_colon_tests: test ':' test | test_colon_tests ',' test ':' test
280280
dictorsetmaker: test_colon_tests optional_comma
281281
| test ':' test comp_for
282-
| test testlist
282+
| testlist
283283
| test comp_for
284284

285285
classdef: CLASS NAME optional_arglist_call ':' suite

0 commit comments

Comments
 (0)