Skip to content

Commit 9a0a985

Browse files
review: properly set error code
1 parent 1937551 commit 9a0a985

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Parser/lexer/string.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ _PyLexer_set_ftstring_expr(struct tok_state* tok, struct token *token, char c) {
2424
size tracking to underflow. Treat as a tokenizer error rather
2525
than passing a negative length (cast to huge size_t) to malloc or
2626
PyUnicode_DecodeUTF8. */
27+
tok->done = E_TOKEN;
2728
return -1;
2829
}
2930

0 commit comments

Comments
 (0)