In PyFile_WriteString(), call PyUnicode_FromString() instead of
PyString_FromString(). This is arguably more correct, even if it shouldn't matter much (all the input is likely to be ASCII).
Showing
Please register or sign in to comment
PyString_FromString(). This is arguably more correct, even if it shouldn't matter much (all the input is likely to be ASCII).