summaryrefslogtreecommitdiffstats
path: root/Modules/_fileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_fileio.c')
-rw-r--r--Modules/_fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_fileio.c b/Modules/_fileio.c
index 660402f..76b47e5 100644
--- a/Modules/_fileio.c
+++ b/Modules/_fileio.c
@@ -705,7 +705,7 @@ get_closed(PyFileIOObject *self, void *closure)
static PyObject *
get_mode(PyFileIOObject *self, void *closure)
{
- return PyString_FromString(mode_string(self));
+ return PyUnicode_FromString(mode_string(self));
}
static PyGetSetDef fileio_getsetlist[] = {