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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user