Skip to content

Commit

Permalink
bpo-45562: Ensure all tokenizer debug messages are printed to stderr (G…
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogsal committed Oct 28, 2021
1 parent 4fc6856 commit cdc7a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Parser/tokenizer.c
Expand Up @@ -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
Expand Down

0 comments on commit cdc7a58

Please sign in to comment.