From: Pablo Galindo Salgado Date: Thu, 10 Feb 2022 14:38:27 +0000 (+0000) Subject: Don't print rejected tokens when using the debug flags in the parser (GH-31258) X-Git-Tag: v3.11.0a6~243 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e19059ecd80d39dca378cd19f72c5008b1957976;p=thirdparty%2FPython%2Fcpython.git 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 839ffeff76fb..95dc54dd6040 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;