Don't print rejected tokens when using the debug flags in the parser (GH-31258)

This commit is contained in:
Pablo Galindo Salgado 2022-02-10 14:38:27 +00:00 committed by GitHub
parent 390459de6d
commit e19059ecd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -381,7 +381,6 @@ _PyPegen_expect_token(Parser *p, int type)
} }
Token *t = p->tokens[p->mark]; Token *t = p->tokens[p->mark];
if (t->type != type) { if (t->type != type) {
if (Py_DebugFlag) fprintf(stderr, "Token = %s\n", PyBytes_AsString(t->bytes));
return NULL; return NULL;
} }
p->mark += 1; p->mark += 1;