mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-11 00:32:27 +03:00
Updated code for Python 3
This commit is contained in:
parent
d4c443ef68
commit
c0ea69efa4
|
@ -3394,7 +3394,7 @@ _getattr_unsafe_ptrs(ImagingObject* self, void* closure)
|
||||||
static PyObject*
|
static PyObject*
|
||||||
_getattr_readonly(ImagingObject* self, void* closure)
|
_getattr_readonly(ImagingObject* self, void* closure)
|
||||||
{
|
{
|
||||||
return PyInt_FromLong(self->image->readonly);
|
return PyLong_FromLong(self->image->readonly);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct PyGetSetDef getsetters[] = {
|
static struct PyGetSetDef getsetters[] = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user