Commit 11019804 authored by Guido van Rossum's avatar Guido van Rossum

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).
parent f39317a9
......@@ -177,7 +177,7 @@ PyFile_WriteString(const char *s, PyObject *f)
return -1;
}
else if (!PyErr_Occurred()) {
PyObject *v = PyString_FromString(s);
PyObject *v = PyUnicode_FromString(s);
int err;
if (v == NULL)
return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment