mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Renamed PyString to PyBytes
This commit is contained in:
parent
c3cb683d63
commit
593daf545b
176 changed files with 2793 additions and 2791 deletions
|
@ -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 *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue