commit | e19059ecd80d39dca378cd19f72c5008b1957976 | [log] [tgz] |
---|---|---|
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | Thu Feb 10 14:38:27 2022 +0000 |
committer | GitHub <noreply@github.com> | Thu Feb 10 14:38:27 2022 +0000 |
tree | 5996f1758248b4f528c99f69955079a48c096253 | |
parent | 390459de6db1e68b79c0897cc88c0d562693ec5c [diff] |
Don't print rejected tokens when using the debug flags in the parser (GH-31258)
diff --git a/Parser/pegen.c b/Parser/pegen.c index 839ffef..95dc54d 100644 --- a/Parser/pegen.c +++ b/Parser/pegen.c
@@ -381,7 +381,6 @@ _PyPegen_expect_token(Parser *p, int type) } Token *t = p->tokens[p->mark]; if (t->type != type) { - if (Py_DebugFlag) fprintf(stderr, "Token = %s\n", PyBytes_AsString(t->bytes)); return NULL; } p->mark += 1;