bpo-45562: Ensure all tokenizer debug messages are printed to stderr (GH-29270)

This commit is contained in:
Pablo Galindo Salgado 2021-10-28 18:06:15 +01:00 committed by GitHub
parent 4fc68560ea
commit cdc7a58277
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1048,7 +1048,7 @@ tok_nextc(struct tok_state *tok)
#if defined(Py_DEBUG)
if (Py_DebugFlag) {
fprintf(stderr, "line[%d] = ", tok->lineno);
print_escape(stdout, tok->cur, tok->inp - tok->cur);
print_escape(stderr, tok->cur, tok->inp - tok->cur);
fprintf(stderr, " tok->done = %d\n", tok->done);
}
#endif