Fixed type to be byteslike object.

This commit is contained in:
wiredfool 2017-08-21 03:44:34 -07:00
parent d3580451e2
commit 184a983f80

View File

@ -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) {