summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2021-10-28 17:06:15 (GMT)
committerGitHub <noreply@github.com>2021-10-28 17:06:15 (GMT)
commitcdc7a5827754bec83970bb052d410d55f85b3fff (patch)
tree1b2e8d867285df36f42526b1ca4887913e95696d /Parser
parent4fc68560ea0d506c152a82c48c162bfe002f34a8 (diff)
downloadcpython-cdc7a5827754bec83970bb052d410d55f85b3fff.zip
cpython-cdc7a5827754bec83970bb052d410d55f85b3fff.tar.gz
cpython-cdc7a5827754bec83970bb052d410d55f85b3fff.tar.bz2
bpo-45562: Ensure all tokenizer debug messages are printed to stderr (GH-29270)
Diffstat (limited to 'Parser')
-rw-r--r--Parser/tokenizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index 4329cdd..8a19458 100644
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -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