fix warning for python3

use PyUnicode_FromString instead of PyString_FromString
this warning prevented loading _imaging, somehow
This commit is contained in:
Oliver Tonnhofer 2013-03-12 20:19:08 +01:00
parent 6a450e303d
commit 1401adaefa

View File

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