mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16:16 +03:00
fix warning for python3
use PyUnicode_FromString instead of PyString_FromString this warning prevented loading _imaging, somehow
This commit is contained in:
parent
6a450e303d
commit
1401adaefa
|
@ -932,7 +932,7 @@ _getpalettemode(ImagingObject* self, PyObject* args)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
return PyString_FromString(self->image->palette->mode);
|
||||
return PyUnicode_FromString(self->image->palette->mode);
|
||||
}
|
||||
|
||||
static inline int
|
||||
|
|
Loading…
Reference in New Issue
Block a user