From 2136e388b5e9bae8a87450c1589354f7cc2e59c3 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Thu, 10 Feb 2022 13:16:03 +0000 Subject: [PATCH] Don't print rejected tokens when using the debug flags in the parser --- Parser/pegen.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Parser/pegen.c b/Parser/pegen.c index 839ffeff76fb11..95dc54dd6040fa 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;