From e19059ecd80d39dca378cd19f72c5008b1957976 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Salgado Date: Thu, 10 Feb 2022 14:38:27 +0000 Subject: [PATCH] Don't print rejected tokens when using the debug flags in the parser (GH-31258) --- Parser/pegen.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Parser/pegen.c b/Parser/pegen.c index 839ffeff76f..95dc54dd604 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;