mirror of
https://github.com/python/cpython.git
synced 2026-05-07 13:10:37 -04:00
bpo-45562: Ensure all tokenizer debug messages are printed to stderr (GH-29270)
This commit is contained in:
committed by
GitHub
parent
4fc68560ea
commit
cdc7a58277
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user