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