summaryrefslogtreecommitdiffstats
path: root/Parser/pegen.c
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2022-02-10 14:38:27 (GMT)
committerGitHub <noreply@github.com>2022-02-10 14:38:27 (GMT)
commite19059ecd80d39dca378cd19f72c5008b1957976 (patch)
tree5996f1758248b4f528c99f69955079a48c096253 /Parser/pegen.c
parent390459de6db1e68b79c0897cc88c0d562693ec5c (diff)
downloadcpython-e19059ecd80d39dca378cd19f72c5008b1957976.zip
cpython-e19059ecd80d39dca378cd19f72c5008b1957976.tar.gz
cpython-e19059ecd80d39dca378cd19f72c5008b1957976.tar.bz2
Don't print rejected tokens when using the debug flags in the parser (GH-31258)
Diffstat (limited to 'Parser/pegen.c')
-rw-r--r--Parser/pegen.c1
1 files changed, 0 insertions, 1 deletions
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;