mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-17 07:41:59 +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;
|
||||
UINT8 *values;
|
||||
int length;
|
||||
if (!PyArg_ParseTuple(args, "s#", &values, &length))
|
||||
if (!PyArg_ParseTuple(args, PY_ARG_BYTES_LENGTH, &values, &length))
|
||||
return NULL;
|
||||
|
||||
if (!self->image->palette) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user