Renamed PyString to PyBytes
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index c6f68f8..92c47cb 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -488,7 +488,7 @@
e.g. an empty format, or %Z when the timezone
is unknown. */
PyObject *ret;
- ret = PyString_FromStringAndSize(outbuf, buflen);
+ ret = PyBytes_FromStringAndSize(outbuf, buflen);
free(outbuf);
return ret;
}
@@ -548,7 +548,7 @@
p = asctime(&buf);
if (p[24] == '\n')
p[24] = '\0';
- return PyString_FromString(p);
+ return PyBytes_FromString(p);
}
PyDoc_STRVAR(asctime_doc,
@@ -584,7 +584,7 @@
}
if (p[24] == '\n')
p[24] = '\0';
- return PyString_FromString(p);
+ return PyBytes_FromString(p);
}
PyDoc_STRVAR(ctime_doc,