Cleanup: rename Byte to Bytes in Python string utilities

These functions operate on byte arrays, not a single byte,
match naming for CPython's PyBytes_AS_STRING.
This commit is contained in:
2023-02-15 16:15:59 +11:00
parent 6661342dc5
commit e424931cf7
10 changed files with 33 additions and 33 deletions

View File

@@ -261,7 +261,7 @@ static PyObject *py_imbuf_filepath_get(Py_ImBuf *self, void *UNUSED(closure))
{
PY_IMBUF_CHECK_OBJ(self);
ImBuf *ibuf = self->ibuf;
return PyC_UnicodeFromByte(ibuf->name);
return PyC_UnicodeFromBytes(ibuf->name);
}
static int py_imbuf_filepath_set(Py_ImBuf *self, PyObject *value, void *UNUSED(closure))