Skip to content

Commit b44a660

Browse files
committed
Remove duplicate declaration of "from" token
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
1 parent 1d8269f commit b44a660

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/parser/python.lalrpop

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,10 +1428,9 @@ extern {
14281428
"from" => lexer::Tok::From,
14291429
"global" => lexer::Tok::Global,
14301430
"if" => lexer::Tok::If,
1431+
"import" => lexer::Tok::Import,
14311432
"in" => lexer::Tok::In,
14321433
"is" => lexer::Tok::Is,
1433-
"import" => lexer::Tok::Import,
1434-
"from" => lexer::Tok::From,
14351434
"lambda" => lexer::Tok::Lambda,
14361435
"nonlocal" => lexer::Tok::Nonlocal,
14371436
"not" => lexer::Tok::Not,

0 commit comments

Comments
 (0)