mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-03 11:23:05 +03:00
Fixed type to be byteslike object.
This commit is contained in:
parent
d3580451e2
commit
184a983f80
|
@ -1433,7 +1433,7 @@ _putpalettealphas(ImagingObject* self, PyObject* args)
|
||||||
int i;
|
int i;
|
||||||
UINT8 *values;
|
UINT8 *values;
|
||||||
int length;
|
int length;
|
||||||
if (!PyArg_ParseTuple(args, "s#", &values, &length))
|
if (!PyArg_ParseTuple(args, PY_ARG_BYTES_LENGTH, &values, &length))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (!self->image->palette) {
|
if (!self->image->palette) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user