summaryrefslogtreecommitdiffstats
path: root/Objects/fileobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/fileobject.c')
-rw-r--r--Objects/fileobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 372cf43..34bca68 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -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;