diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 4329cdd226e..8a19458ec72 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