mirror of https://github.com/python/cpython
Don't print rejected tokens when using the debug flags in the parser (GH-31258)
This commit is contained in:
parent
390459de6d
commit
e19059ecd8
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue