Skip to content

Commit 9088479

Browse files
committed
Fix f-string syntax error message in tok_get_normal_mode
1 parent 83b2185 commit 9088479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parser/lexer/lexer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ tok_get_normal_mode(struct tok_state *tok, tokenizer_mode* current_tok, struct t
11061106
tokenizer_mode *the_current_tok = TOK_GET_MODE(tok);
11071107
if (the_current_tok->f_string_quote == quote &&
11081108
the_current_tok->f_string_quote_size == quote_size) {
1109-
return MAKE_TOKEN(_PyTokenizer_syntaxerror(tok, "f-string: expecting '}'", start));
1109+
return MAKE_TOKEN(_PyTokenizer_syntaxerror(tok, "f-string: expecting '}'"));
11101110
}
11111111
}
11121112

0 commit comments

Comments
 (0)