Skip to content

Commit 1e18605

Browse files
pablogsalmaurycy
andauthored
Update Parser/pegen.c
Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
1 parent c758acc commit 1e18605

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Parser/pegen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ initialize_token(Parser *p, Token *parser_token, struct token *new_token, int to
209209
assert(parser_token != NULL);
210210

211211
parser_token->type = (token_type == NAME) ? _get_keyword_or_name_type(p, new_token) : token_type;
212-
if (token_type == NAME || token_needs_text(parser_token->type)) {
212+
if (token_needs_text(parser_token->type)) {
213213
parser_token->bytes = PyBytes_FromStringAndSize(
214214
new_token->start, new_token->end - new_token->start);
215215
if (parser_token->bytes == NULL) {

0 commit comments

Comments
 (0)