mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +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 NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return PyString_FromString(self->image->palette->mode);
|
return PyUnicode_FromString(self->image->palette->mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
|
|
Loading…
Reference in New Issue
Block a user