Skip to content

Commit e19059e

Browse files
authored
Don't print rejected tokens when using the debug flags in the parser (GH-31258)
1 parent 390459d commit e19059e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Parser/pegen.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,6 @@ _PyPegen_expect_token(Parser *p, int type)
381381
}
382382
Token *t = p->tokens[p->mark];
383383
if (t->type != type) {
384-
if (Py_DebugFlag) fprintf(stderr, "Token = %s\n", PyBytes_AsString(t->bytes));
385384
return NULL;
386385
}
387386
p->mark += 1;

0 commit comments

Comments
 (0)