Use default tp_flags

This commit is contained in:
Andrew Murray 2025-02-09 16:03:38 +11:00
parent bfa2d64e0e
commit 422c0f607d
9 changed files with 0 additions and 13 deletions

View File

@ -3773,7 +3773,6 @@ static PyTypeObject Imaging_Type = {
.tp_basicsize = sizeof(ImagingObject), .tp_basicsize = sizeof(ImagingObject),
.tp_dealloc = (destructor)_dealloc, .tp_dealloc = (destructor)_dealloc,
.tp_as_sequence = &image_as_sequence, .tp_as_sequence = &image_as_sequence,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = methods, .tp_methods = methods,
.tp_getset = getsetters, .tp_getset = getsetters,
}; };
@ -3782,7 +3781,6 @@ static PyTypeObject ImagingFont_Type = {
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "ImagingFont", PyVarObject_HEAD_INIT(NULL, 0).tp_name = "ImagingFont",
.tp_basicsize = sizeof(ImagingFontObject), .tp_basicsize = sizeof(ImagingFontObject),
.tp_dealloc = (destructor)_font_dealloc, .tp_dealloc = (destructor)_font_dealloc,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = _font_methods, .tp_methods = _font_methods,
}; };
@ -3790,7 +3788,6 @@ static PyTypeObject ImagingDraw_Type = {
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "ImagingDraw", PyVarObject_HEAD_INIT(NULL, 0).tp_name = "ImagingDraw",
.tp_basicsize = sizeof(ImagingDrawObject), .tp_basicsize = sizeof(ImagingDrawObject),
.tp_dealloc = (destructor)_draw_dealloc, .tp_dealloc = (destructor)_draw_dealloc,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = _draw_methods, .tp_methods = _draw_methods,
}; };

View File

@ -1413,7 +1413,6 @@ static PyTypeObject CmsProfile_Type = {
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "PIL.ImageCms.core.CmsProfile", PyVarObject_HEAD_INIT(NULL, 0).tp_name = "PIL.ImageCms.core.CmsProfile",
.tp_basicsize = sizeof(CmsProfileObject), .tp_basicsize = sizeof(CmsProfileObject),
.tp_dealloc = (destructor)cms_profile_dealloc, .tp_dealloc = (destructor)cms_profile_dealloc,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = cms_profile_methods, .tp_methods = cms_profile_methods,
.tp_getset = cms_profile_getsetters, .tp_getset = cms_profile_getsetters,
}; };
@ -1426,7 +1425,6 @@ static PyTypeObject CmsTransform_Type = {
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "PIL.ImageCms.core.CmsTransform", PyVarObject_HEAD_INIT(NULL, 0).tp_name = "PIL.ImageCms.core.CmsTransform",
.tp_basicsize = sizeof(CmsTransformObject), .tp_basicsize = sizeof(CmsTransformObject),
.tp_dealloc = (destructor)cms_transform_dealloc, .tp_dealloc = (destructor)cms_transform_dealloc,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = cms_transform_methods, .tp_methods = cms_transform_methods,
}; };

View File

@ -1521,7 +1521,6 @@ static PyTypeObject Font_Type = {
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "Font", PyVarObject_HEAD_INIT(NULL, 0).tp_name = "Font",
.tp_basicsize = sizeof(FontObject), .tp_basicsize = sizeof(FontObject),
.tp_dealloc = (destructor)font_dealloc, .tp_dealloc = (destructor)font_dealloc,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = font_methods, .tp_methods = font_methods,
.tp_getset = font_getsetters, .tp_getset = font_getsetters,
}; };

View File

@ -533,7 +533,6 @@ static PyTypeObject WebPAnimEncoder_Type = {
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "WebPAnimEncoder", PyVarObject_HEAD_INIT(NULL, 0).tp_name = "WebPAnimEncoder",
.tp_basicsize = sizeof(WebPAnimEncoderObject), .tp_basicsize = sizeof(WebPAnimEncoderObject),
.tp_dealloc = (destructor)_anim_encoder_dealloc, .tp_dealloc = (destructor)_anim_encoder_dealloc,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = _anim_encoder_methods, .tp_methods = _anim_encoder_methods,
}; };
@ -551,7 +550,6 @@ static PyTypeObject WebPAnimDecoder_Type = {
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "WebPAnimDecoder", PyVarObject_HEAD_INIT(NULL, 0).tp_name = "WebPAnimDecoder",
.tp_basicsize = sizeof(WebPAnimDecoderObject), .tp_basicsize = sizeof(WebPAnimDecoderObject),
.tp_dealloc = (destructor)_anim_decoder_dealloc, .tp_dealloc = (destructor)_anim_decoder_dealloc,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = _anim_decoder_methods, .tp_methods = _anim_decoder_methods,
}; };

View File

@ -259,7 +259,6 @@ static PyTypeObject ImagingDecoderType = {
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "ImagingDecoder", PyVarObject_HEAD_INIT(NULL, 0).tp_name = "ImagingDecoder",
.tp_basicsize = sizeof(ImagingDecoderObject), .tp_basicsize = sizeof(ImagingDecoderObject),
.tp_dealloc = (destructor)_dealloc, .tp_dealloc = (destructor)_dealloc,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = methods, .tp_methods = methods,
.tp_getset = getseters, .tp_getset = getseters,
}; };

View File

@ -251,7 +251,6 @@ static PyTypeObject ImagingDisplayType = {
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "ImagingDisplay", PyVarObject_HEAD_INIT(NULL, 0).tp_name = "ImagingDisplay",
.tp_basicsize = sizeof(ImagingDisplayObject), .tp_basicsize = sizeof(ImagingDisplayObject),
.tp_dealloc = (destructor)_delete, .tp_dealloc = (destructor)_delete,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = methods, .tp_methods = methods,
.tp_getset = getsetters, .tp_getset = getsetters,
}; };

View File

@ -326,7 +326,6 @@ static PyTypeObject ImagingEncoderType = {
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "ImagingEncoder", PyVarObject_HEAD_INIT(NULL, 0).tp_name = "ImagingEncoder",
.tp_basicsize = sizeof(ImagingEncoderObject), .tp_basicsize = sizeof(ImagingEncoderObject),
.tp_dealloc = (destructor)_dealloc, .tp_dealloc = (destructor)_dealloc,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = methods, .tp_methods = methods,
.tp_getset = getseters, .tp_getset = getseters,
}; };

View File

@ -152,6 +152,5 @@ static PyTypeObject OutlineType = {
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "Outline", PyVarObject_HEAD_INIT(NULL, 0).tp_name = "Outline",
.tp_basicsize = sizeof(OutlineObject), .tp_basicsize = sizeof(OutlineObject),
.tp_dealloc = (destructor)_outline_dealloc, .tp_dealloc = (destructor)_outline_dealloc,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = _outline_methods, .tp_methods = _outline_methods,
}; };

View File

@ -603,7 +603,6 @@ static PyTypeObject PyPathType = {
.tp_dealloc = (destructor)path_dealloc, .tp_dealloc = (destructor)path_dealloc,
.tp_as_sequence = &path_as_sequence, .tp_as_sequence = &path_as_sequence,
.tp_as_mapping = &path_as_mapping, .tp_as_mapping = &path_as_mapping,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = methods, .tp_methods = methods,
.tp_getset = getsetters, .tp_getset = getsetters,
}; };