mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-31 23:44:14 +03:00
update PyTypeObject slot names
tp_print was renamed to tp_vectorcall_offset with Python 3.8, and tp_compare was renamed to tp_as_async with Python 3.5. tp_size has always been tp_basicsize; I don't know why that one was wrong.
This commit is contained in:
parent
1ffe3354d7
commit
e7398c7888
|
@ -3725,14 +3725,14 @@ static PySequenceMethods image_as_sequence = {
|
||||||
|
|
||||||
static PyTypeObject Imaging_Type = {
|
static PyTypeObject Imaging_Type = {
|
||||||
PyVarObject_HEAD_INIT(NULL, 0) "ImagingCore", /*tp_name*/
|
PyVarObject_HEAD_INIT(NULL, 0) "ImagingCore", /*tp_name*/
|
||||||
sizeof(ImagingObject), /*tp_size*/
|
sizeof(ImagingObject), /*tp_basicsize*/
|
||||||
0, /*tp_itemsize*/
|
0, /*tp_itemsize*/
|
||||||
/* methods */
|
/* methods */
|
||||||
(destructor)_dealloc, /*tp_dealloc*/
|
(destructor)_dealloc, /*tp_dealloc*/
|
||||||
0, /*tp_print*/
|
0, /*tp_vectorcall_offset*/
|
||||||
0, /*tp_getattr*/
|
0, /*tp_getattr*/
|
||||||
0, /*tp_setattr*/
|
0, /*tp_setattr*/
|
||||||
0, /*tp_compare*/
|
0, /*tp_as_async*/
|
||||||
0, /*tp_repr*/
|
0, /*tp_repr*/
|
||||||
0, /*tp_as_number*/
|
0, /*tp_as_number*/
|
||||||
&image_as_sequence, /*tp_as_sequence*/
|
&image_as_sequence, /*tp_as_sequence*/
|
||||||
|
@ -3760,14 +3760,14 @@ static PyTypeObject Imaging_Type = {
|
||||||
|
|
||||||
static PyTypeObject ImagingFont_Type = {
|
static PyTypeObject ImagingFont_Type = {
|
||||||
PyVarObject_HEAD_INIT(NULL, 0) "ImagingFont", /*tp_name*/
|
PyVarObject_HEAD_INIT(NULL, 0) "ImagingFont", /*tp_name*/
|
||||||
sizeof(ImagingFontObject), /*tp_size*/
|
sizeof(ImagingFontObject), /*tp_basicsize*/
|
||||||
0, /*tp_itemsize*/
|
0, /*tp_itemsize*/
|
||||||
/* methods */
|
/* methods */
|
||||||
(destructor)_font_dealloc, /*tp_dealloc*/
|
(destructor)_font_dealloc, /*tp_dealloc*/
|
||||||
0, /*tp_print*/
|
0, /*tp_vectorcall_offset*/
|
||||||
0, /*tp_getattr*/
|
0, /*tp_getattr*/
|
||||||
0, /*tp_setattr*/
|
0, /*tp_setattr*/
|
||||||
0, /*tp_compare*/
|
0, /*tp_as_async*/
|
||||||
0, /*tp_repr*/
|
0, /*tp_repr*/
|
||||||
0, /*tp_as_number*/
|
0, /*tp_as_number*/
|
||||||
0, /*tp_as_sequence*/
|
0, /*tp_as_sequence*/
|
||||||
|
@ -3793,14 +3793,14 @@ static PyTypeObject ImagingFont_Type = {
|
||||||
|
|
||||||
static PyTypeObject ImagingDraw_Type = {
|
static PyTypeObject ImagingDraw_Type = {
|
||||||
PyVarObject_HEAD_INIT(NULL, 0) "ImagingDraw", /*tp_name*/
|
PyVarObject_HEAD_INIT(NULL, 0) "ImagingDraw", /*tp_name*/
|
||||||
sizeof(ImagingDrawObject), /*tp_size*/
|
sizeof(ImagingDrawObject), /*tp_basicsize*/
|
||||||
0, /*tp_itemsize*/
|
0, /*tp_itemsize*/
|
||||||
/* methods */
|
/* methods */
|
||||||
(destructor)_draw_dealloc, /*tp_dealloc*/
|
(destructor)_draw_dealloc, /*tp_dealloc*/
|
||||||
0, /*tp_print*/
|
0, /*tp_vectorcall_offset*/
|
||||||
0, /*tp_getattr*/
|
0, /*tp_getattr*/
|
||||||
0, /*tp_setattr*/
|
0, /*tp_setattr*/
|
||||||
0, /*tp_compare*/
|
0, /*tp_as_async*/
|
||||||
0, /*tp_repr*/
|
0, /*tp_repr*/
|
||||||
0, /*tp_as_number*/
|
0, /*tp_as_number*/
|
||||||
0, /*tp_as_sequence*/
|
0, /*tp_as_sequence*/
|
||||||
|
@ -3835,15 +3835,15 @@ static PyMappingMethods pixel_access_as_mapping = {
|
||||||
/* type description */
|
/* type description */
|
||||||
|
|
||||||
static PyTypeObject PixelAccess_Type = {
|
static PyTypeObject PixelAccess_Type = {
|
||||||
PyVarObject_HEAD_INIT(NULL, 0) "PixelAccess",
|
PyVarObject_HEAD_INIT(NULL, 0) "PixelAccess", /*tp_name*/
|
||||||
sizeof(PixelAccessObject),
|
sizeof(PixelAccessObject), /*tp_basicsize*/
|
||||||
0,
|
0, /*tp_itemsize*/
|
||||||
/* methods */
|
/* methods */
|
||||||
(destructor)pixel_access_dealloc, /*tp_dealloc*/
|
(destructor)pixel_access_dealloc, /*tp_dealloc*/
|
||||||
0, /*tp_print*/
|
0, /*tp_vectorcall_offset*/
|
||||||
0, /*tp_getattr*/
|
0, /*tp_getattr*/
|
||||||
0, /*tp_setattr*/
|
0, /*tp_setattr*/
|
||||||
0, /*tp_compare*/
|
0, /*tp_as_async*/
|
||||||
0, /*tp_repr*/
|
0, /*tp_repr*/
|
||||||
0, /*tp_as_number*/
|
0, /*tp_as_number*/
|
||||||
0, /*tp_as_sequence*/
|
0, /*tp_as_sequence*/
|
||||||
|
|
|
@ -1422,14 +1422,14 @@ static struct PyGetSetDef cms_profile_getsetters[] = {
|
||||||
|
|
||||||
static PyTypeObject CmsProfile_Type = {
|
static PyTypeObject CmsProfile_Type = {
|
||||||
PyVarObject_HEAD_INIT(NULL, 0) "PIL._imagingcms.CmsProfile", /*tp_name*/
|
PyVarObject_HEAD_INIT(NULL, 0) "PIL._imagingcms.CmsProfile", /*tp_name*/
|
||||||
sizeof(CmsProfileObject),
|
sizeof(CmsProfileObject), /*tp_basicsize*/
|
||||||
0, /*tp_basicsize, tp_itemsize */
|
0, /*tp_itemsize*/
|
||||||
/* methods */
|
/* methods */
|
||||||
(destructor)cms_profile_dealloc, /*tp_dealloc*/
|
(destructor)cms_profile_dealloc, /*tp_dealloc*/
|
||||||
0, /*tp_print*/
|
0, /*tp_vectorcall_offset*/
|
||||||
0, /*tp_getattr*/
|
0, /*tp_getattr*/
|
||||||
0, /*tp_setattr*/
|
0, /*tp_setattr*/
|
||||||
0, /*tp_compare*/
|
0, /*tp_as_async*/
|
||||||
0, /*tp_repr*/
|
0, /*tp_repr*/
|
||||||
0, /*tp_as_number*/
|
0, /*tp_as_number*/
|
||||||
0, /*tp_as_sequence*/
|
0, /*tp_as_sequence*/
|
||||||
|
@ -1473,15 +1473,15 @@ static struct PyGetSetDef cms_transform_getsetters[] = {
|
||||||
{NULL}};
|
{NULL}};
|
||||||
|
|
||||||
static PyTypeObject CmsTransform_Type = {
|
static PyTypeObject CmsTransform_Type = {
|
||||||
PyVarObject_HEAD_INIT(NULL, 0) "CmsTransform",
|
PyVarObject_HEAD_INIT(NULL, 0) "CmsTransform", /*tp_name*/
|
||||||
sizeof(CmsTransformObject),
|
sizeof(CmsTransformObject), /*tp_basicsize*/
|
||||||
0,
|
0, /*tp_itemsize*/
|
||||||
/* methods */
|
/* methods */
|
||||||
(destructor)cms_transform_dealloc, /*tp_dealloc*/
|
(destructor)cms_transform_dealloc, /*tp_dealloc*/
|
||||||
0, /*tp_print*/
|
0, /*tp_vectorcall_offset*/
|
||||||
0, /*tp_getattr*/
|
0, /*tp_getattr*/
|
||||||
0, /*tp_setattr*/
|
0, /*tp_setattr*/
|
||||||
0, /*tp_compare*/
|
0, /*tp_as_async*/
|
||||||
0, /*tp_repr*/
|
0, /*tp_repr*/
|
||||||
0, /*tp_as_number*/
|
0, /*tp_as_number*/
|
||||||
0, /*tp_as_sequence*/
|
0, /*tp_as_sequence*/
|
||||||
|
|
|
@ -1401,15 +1401,15 @@ static struct PyGetSetDef font_getsetters[] = {
|
||||||
{NULL}};
|
{NULL}};
|
||||||
|
|
||||||
static PyTypeObject Font_Type = {
|
static PyTypeObject Font_Type = {
|
||||||
PyVarObject_HEAD_INIT(NULL, 0) "Font",
|
PyVarObject_HEAD_INIT(NULL, 0) "Font", /*tp_name*/
|
||||||
sizeof(FontObject),
|
sizeof(FontObject), /*tp_basicsize*/
|
||||||
0,
|
0, /*tp_itemsize*/
|
||||||
/* methods */
|
/* methods */
|
||||||
(destructor)font_dealloc, /*tp_dealloc*/
|
(destructor)font_dealloc, /*tp_dealloc*/
|
||||||
0, /* tp_print */
|
0, /*tp_vectorcall_offset*/
|
||||||
0, /*tp_getattr*/
|
0, /*tp_getattr*/
|
||||||
0, /*tp_setattr*/
|
0, /*tp_setattr*/
|
||||||
0, /*tp_compare*/
|
0, /*tp_as_async*/
|
||||||
0, /*tp_repr*/
|
0, /*tp_repr*/
|
||||||
0, /*tp_as_number*/
|
0, /*tp_as_number*/
|
||||||
0, /*tp_as_sequence*/
|
0, /*tp_as_sequence*/
|
||||||
|
|
12
src/_webp.c
12
src/_webp.c
|
@ -487,14 +487,14 @@ static struct PyMethodDef _anim_encoder_methods[] = {
|
||||||
// WebPAnimEncoder type definition
|
// WebPAnimEncoder type definition
|
||||||
static PyTypeObject WebPAnimEncoder_Type = {
|
static PyTypeObject WebPAnimEncoder_Type = {
|
||||||
PyVarObject_HEAD_INIT(NULL, 0) "WebPAnimEncoder", /*tp_name */
|
PyVarObject_HEAD_INIT(NULL, 0) "WebPAnimEncoder", /*tp_name */
|
||||||
sizeof(WebPAnimEncoderObject), /*tp_size */
|
sizeof(WebPAnimEncoderObject), /*tp_basicsize */
|
||||||
0, /*tp_itemsize */
|
0, /*tp_itemsize */
|
||||||
/* methods */
|
/* methods */
|
||||||
(destructor)_anim_encoder_dealloc, /*tp_dealloc*/
|
(destructor)_anim_encoder_dealloc, /*tp_dealloc*/
|
||||||
0, /*tp_print*/
|
0, /*tp_vectorcall_offset*/
|
||||||
0, /*tp_getattr*/
|
0, /*tp_getattr*/
|
||||||
0, /*tp_setattr*/
|
0, /*tp_setattr*/
|
||||||
0, /*tp_compare*/
|
0, /*tp_as_async*/
|
||||||
0, /*tp_repr*/
|
0, /*tp_repr*/
|
||||||
0, /*tp_as_number*/
|
0, /*tp_as_number*/
|
||||||
0, /*tp_as_sequence*/
|
0, /*tp_as_sequence*/
|
||||||
|
@ -530,14 +530,14 @@ static struct PyMethodDef _anim_decoder_methods[] = {
|
||||||
// WebPAnimDecoder type definition
|
// WebPAnimDecoder type definition
|
||||||
static PyTypeObject WebPAnimDecoder_Type = {
|
static PyTypeObject WebPAnimDecoder_Type = {
|
||||||
PyVarObject_HEAD_INIT(NULL, 0) "WebPAnimDecoder", /*tp_name */
|
PyVarObject_HEAD_INIT(NULL, 0) "WebPAnimDecoder", /*tp_name */
|
||||||
sizeof(WebPAnimDecoderObject), /*tp_size */
|
sizeof(WebPAnimDecoderObject), /*tp_basicsize */
|
||||||
0, /*tp_itemsize */
|
0, /*tp_itemsize */
|
||||||
/* methods */
|
/* methods */
|
||||||
(destructor)_anim_decoder_dealloc, /*tp_dealloc*/
|
(destructor)_anim_decoder_dealloc, /*tp_dealloc*/
|
||||||
0, /*tp_print*/
|
0, /*tp_vectorcall_offset*/
|
||||||
0, /*tp_getattr*/
|
0, /*tp_getattr*/
|
||||||
0, /*tp_setattr*/
|
0, /*tp_setattr*/
|
||||||
0, /*tp_compare*/
|
0, /*tp_as_async*/
|
||||||
0, /*tp_repr*/
|
0, /*tp_repr*/
|
||||||
0, /*tp_as_number*/
|
0, /*tp_as_number*/
|
||||||
0, /*tp_as_sequence*/
|
0, /*tp_as_sequence*/
|
||||||
|
|
|
@ -258,14 +258,14 @@ static struct PyGetSetDef getseters[] = {
|
||||||
|
|
||||||
static PyTypeObject ImagingDecoderType = {
|
static PyTypeObject ImagingDecoderType = {
|
||||||
PyVarObject_HEAD_INIT(NULL, 0) "ImagingDecoder", /*tp_name*/
|
PyVarObject_HEAD_INIT(NULL, 0) "ImagingDecoder", /*tp_name*/
|
||||||
sizeof(ImagingDecoderObject), /*tp_size*/
|
sizeof(ImagingDecoderObject), /*tp_basicsize*/
|
||||||
0, /*tp_itemsize*/
|
0, /*tp_itemsize*/
|
||||||
/* methods */
|
/* methods */
|
||||||
(destructor)_dealloc, /*tp_dealloc*/
|
(destructor)_dealloc, /*tp_dealloc*/
|
||||||
0, /*tp_print*/
|
0, /*tp_vectorcall_offset*/
|
||||||
0, /*tp_getattr*/
|
0, /*tp_getattr*/
|
||||||
0, /*tp_setattr*/
|
0, /*tp_setattr*/
|
||||||
0, /*tp_compare*/
|
0, /*tp_as_async*/
|
||||||
0, /*tp_repr*/
|
0, /*tp_repr*/
|
||||||
0, /*tp_as_number*/
|
0, /*tp_as_number*/
|
||||||
0, /*tp_as_sequence*/
|
0, /*tp_as_sequence*/
|
||||||
|
|
|
@ -251,14 +251,14 @@ static struct PyGetSetDef getsetters[] = {
|
||||||
|
|
||||||
static PyTypeObject ImagingDisplayType = {
|
static PyTypeObject ImagingDisplayType = {
|
||||||
PyVarObject_HEAD_INIT(NULL, 0) "ImagingDisplay", /*tp_name*/
|
PyVarObject_HEAD_INIT(NULL, 0) "ImagingDisplay", /*tp_name*/
|
||||||
sizeof(ImagingDisplayObject), /*tp_size*/
|
sizeof(ImagingDisplayObject), /*tp_basicsize*/
|
||||||
0, /*tp_itemsize*/
|
0, /*tp_itemsize*/
|
||||||
/* methods */
|
/* methods */
|
||||||
(destructor)_delete, /*tp_dealloc*/
|
(destructor)_delete, /*tp_dealloc*/
|
||||||
0, /*tp_print*/
|
0, /*tp_vectorcall_offset*/
|
||||||
0, /*tp_getattr*/
|
0, /*tp_getattr*/
|
||||||
0, /*tp_setattr*/
|
0, /*tp_setattr*/
|
||||||
0, /*tp_compare*/
|
0, /*tp_as_async*/
|
||||||
0, /*tp_repr*/
|
0, /*tp_repr*/
|
||||||
0, /*tp_as_number*/
|
0, /*tp_as_number*/
|
||||||
0, /*tp_as_sequence*/
|
0, /*tp_as_sequence*/
|
||||||
|
|
|
@ -323,14 +323,14 @@ static struct PyGetSetDef getseters[] = {
|
||||||
|
|
||||||
static PyTypeObject ImagingEncoderType = {
|
static PyTypeObject ImagingEncoderType = {
|
||||||
PyVarObject_HEAD_INIT(NULL, 0) "ImagingEncoder", /*tp_name*/
|
PyVarObject_HEAD_INIT(NULL, 0) "ImagingEncoder", /*tp_name*/
|
||||||
sizeof(ImagingEncoderObject), /*tp_size*/
|
sizeof(ImagingEncoderObject), /*tp_basicsize*/
|
||||||
0, /*tp_itemsize*/
|
0, /*tp_itemsize*/
|
||||||
/* methods */
|
/* methods */
|
||||||
(destructor)_dealloc, /*tp_dealloc*/
|
(destructor)_dealloc, /*tp_dealloc*/
|
||||||
0, /*tp_print*/
|
0, /*tp_vectorcall_offset*/
|
||||||
0, /*tp_getattr*/
|
0, /*tp_getattr*/
|
||||||
0, /*tp_setattr*/
|
0, /*tp_setattr*/
|
||||||
0, /*tp_compare*/
|
0, /*tp_as_async*/
|
||||||
0, /*tp_repr*/
|
0, /*tp_repr*/
|
||||||
0, /*tp_as_number*/
|
0, /*tp_as_number*/
|
||||||
0, /*tp_as_sequence*/
|
0, /*tp_as_sequence*/
|
||||||
|
|
|
@ -155,14 +155,14 @@ static struct PyMethodDef _outline_methods[] = {
|
||||||
|
|
||||||
static PyTypeObject OutlineType = {
|
static PyTypeObject OutlineType = {
|
||||||
PyVarObject_HEAD_INIT(NULL, 0) "Outline", /*tp_name*/
|
PyVarObject_HEAD_INIT(NULL, 0) "Outline", /*tp_name*/
|
||||||
sizeof(OutlineObject), /*tp_size*/
|
sizeof(OutlineObject), /*tp_basicsize*/
|
||||||
0, /*tp_itemsize*/
|
0, /*tp_itemsize*/
|
||||||
/* methods */
|
/* methods */
|
||||||
(destructor)_outline_dealloc, /*tp_dealloc*/
|
(destructor)_outline_dealloc, /*tp_dealloc*/
|
||||||
0, /*tp_print*/
|
0, /*tp_vectorcall_offset*/
|
||||||
0, /*tp_getattr*/
|
0, /*tp_getattr*/
|
||||||
0, /*tp_setattr*/
|
0, /*tp_setattr*/
|
||||||
0, /*tp_compare*/
|
0, /*tp_as_async*/
|
||||||
0, /*tp_repr*/
|
0, /*tp_repr*/
|
||||||
0, /*tp_as_number*/
|
0, /*tp_as_number*/
|
||||||
0, /*tp_as_sequence*/
|
0, /*tp_as_sequence*/
|
||||||
|
|
|
@ -583,14 +583,14 @@ static PyMappingMethods path_as_mapping = {
|
||||||
|
|
||||||
static PyTypeObject PyPathType = {
|
static PyTypeObject PyPathType = {
|
||||||
PyVarObject_HEAD_INIT(NULL, 0) "Path", /*tp_name*/
|
PyVarObject_HEAD_INIT(NULL, 0) "Path", /*tp_name*/
|
||||||
sizeof(PyPathObject), /*tp_size*/
|
sizeof(PyPathObject), /*tp_basicsize*/
|
||||||
0, /*tp_itemsize*/
|
0, /*tp_itemsize*/
|
||||||
/* methods */
|
/* methods */
|
||||||
(destructor)path_dealloc, /*tp_dealloc*/
|
(destructor)path_dealloc, /*tp_dealloc*/
|
||||||
0, /*tp_print*/
|
0, /*tp_vectorcall_offset*/
|
||||||
0, /*tp_getattr*/
|
0, /*tp_getattr*/
|
||||||
0, /*tp_setattr*/
|
0, /*tp_setattr*/
|
||||||
0, /*tp_compare*/
|
0, /*tp_as_async*/
|
||||||
0, /*tp_repr*/
|
0, /*tp_repr*/
|
||||||
0, /*tp_as_number*/
|
0, /*tp_as_number*/
|
||||||
&path_as_sequence, /*tp_as_sequence*/
|
&path_as_sequence, /*tp_as_sequence*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user