File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1046,9 +1046,9 @@ tok_nextc(struct tok_state *tok)
1046
1046
}
1047
1047
#if defined(Py_DEBUG )
1048
1048
if (Py_DebugFlag ) {
1049
- printf ( "line[%d] = " , tok -> lineno );
1049
+ fprintf ( stderr , "line[%d] = " , tok -> lineno );
1050
1050
print_escape (stdout , tok -> cur , tok -> inp - tok -> cur );
1051
- printf ( " tok->done = %d\n" , tok -> done );
1051
+ fprintf ( stderr , " tok->done = %d\n" , tok -> done );
1052
1052
}
1053
1053
#endif
1054
1054
if (!rc ) {
@@ -2132,9 +2132,9 @@ PyTokenizer_FindEncoding(int fd)
2132
2132
void
2133
2133
tok_dump (int type , char * start , char * end )
2134
2134
{
2135
- printf ( "%s" , _PyParser_TokenNames [type ]);
2135
+ fprintf ( stderr , "%s" , _PyParser_TokenNames [type ]);
2136
2136
if (type == NAME || type == NUMBER || type == STRING || type == OP )
2137
- printf ( "(%.*s)" , (int )(end - start ), start );
2137
+ fprintf ( stderr , "(%.*s)" , (int )(end - start ), start );
2138
2138
}
2139
2139
2140
2140
#endif
You can’t perform that action at this time.
0 commit comments