mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
bpo-45562: Ensure all tokenizer debug messages are printed to stderr (GH-29270)
(cherry picked from commit cdc7a58277
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
This commit is contained in:
parent
191a93905a
commit
d8ca47c943
1 changed files with 1 additions and 1 deletions
|
@ -1047,7 +1047,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue