]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Don't print rejected tokens when using the debug flags in the parser (GH-31258)
authorPablo Galindo Salgado <Pablogsal@gmail.com>
Thu, 10 Feb 2022 14:38:27 +0000 (14:38 +0000)
committerGitHub <noreply@github.com>
Thu, 10 Feb 2022 14:38:27 +0000 (14:38 +0000)
Parser/pegen.c

index 839ffeff76fb11effc058e80ae23000eb8c0e4ff..95dc54dd6040fa6bdee3c49b8d3fb0c65af26694 100644 (file)
@@ -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;