Renamed PyString to PyBytes

This commit is contained in:
Christian Heimes 2008-05-26 12:51:38 +00:00
parent c3cb683d63
commit 593daf545b
176 changed files with 2793 additions and 2791 deletions

View file

@ -270,7 +270,7 @@ structseq_repr(PyStructSequence *obj)
Py_DECREF(tup);
return NULL;
}
crepr = PyString_AsString(repr);
crepr = PyBytes_AsString(repr);
if (crepr == NULL) {
Py_DECREF(tup);
Py_DECREF(repr);
@ -306,7 +306,7 @@ structseq_repr(PyStructSequence *obj)
*pbuf++ = ')';
*pbuf = '\0';
return PyString_FromString(buf);
return PyBytes_FromString(buf);
}
static PyObject *