Skip to content

Commit 422c0f6

Browse files
committed
Use default tp_flags
1 parent bfa2d64 commit 422c0f6

File tree

9 files changed

+0
-13
lines changed

9 files changed

+0
-13
lines changed

src/_imaging.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3773,7 +3773,6 @@ static PyTypeObject Imaging_Type = {
37733773
.tp_basicsize = sizeof(ImagingObject),
37743774
.tp_dealloc = (destructor)_dealloc,
37753775
.tp_as_sequence = &image_as_sequence,
3776-
.tp_flags = Py_TPFLAGS_DEFAULT,
37773776
.tp_methods = methods,
37783777
.tp_getset = getsetters,
37793778
};
@@ -3782,15 +3781,13 @@ static PyTypeObject ImagingFont_Type = {
37823781
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "ImagingFont",
37833782
.tp_basicsize = sizeof(ImagingFontObject),
37843783
.tp_dealloc = (destructor)_font_dealloc,
3785-
.tp_flags = Py_TPFLAGS_DEFAULT,
37863784
.tp_methods = _font_methods,
37873785
};
37883786

37893787
static PyTypeObject ImagingDraw_Type = {
37903788
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "ImagingDraw",
37913789
.tp_basicsize = sizeof(ImagingDrawObject),
37923790
.tp_dealloc = (destructor)_draw_dealloc,
3793-
.tp_flags = Py_TPFLAGS_DEFAULT,
37943791
.tp_methods = _draw_methods,
37953792
};
37963793

src/_imagingcms.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,6 @@ static PyTypeObject CmsProfile_Type = {
14131413
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "PIL.ImageCms.core.CmsProfile",
14141414
.tp_basicsize = sizeof(CmsProfileObject),
14151415
.tp_dealloc = (destructor)cms_profile_dealloc,
1416-
.tp_flags = Py_TPFLAGS_DEFAULT,
14171416
.tp_methods = cms_profile_methods,
14181417
.tp_getset = cms_profile_getsetters,
14191418
};
@@ -1426,7 +1425,6 @@ static PyTypeObject CmsTransform_Type = {
14261425
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "PIL.ImageCms.core.CmsTransform",
14271426
.tp_basicsize = sizeof(CmsTransformObject),
14281427
.tp_dealloc = (destructor)cms_transform_dealloc,
1429-
.tp_flags = Py_TPFLAGS_DEFAULT,
14301428
.tp_methods = cms_transform_methods,
14311429
};
14321430

src/_imagingft.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,6 @@ static PyTypeObject Font_Type = {
15211521
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "Font",
15221522
.tp_basicsize = sizeof(FontObject),
15231523
.tp_dealloc = (destructor)font_dealloc,
1524-
.tp_flags = Py_TPFLAGS_DEFAULT,
15251524
.tp_methods = font_methods,
15261525
.tp_getset = font_getsetters,
15271526
};

src/_webp.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,6 @@ static PyTypeObject WebPAnimEncoder_Type = {
533533
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "WebPAnimEncoder",
534534
.tp_basicsize = sizeof(WebPAnimEncoderObject),
535535
.tp_dealloc = (destructor)_anim_encoder_dealloc,
536-
.tp_flags = Py_TPFLAGS_DEFAULT,
537536
.tp_methods = _anim_encoder_methods,
538537
};
539538

@@ -551,7 +550,6 @@ static PyTypeObject WebPAnimDecoder_Type = {
551550
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "WebPAnimDecoder",
552551
.tp_basicsize = sizeof(WebPAnimDecoderObject),
553552
.tp_dealloc = (destructor)_anim_decoder_dealloc,
554-
.tp_flags = Py_TPFLAGS_DEFAULT,
555553
.tp_methods = _anim_decoder_methods,
556554
};
557555

src/decode.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ static PyTypeObject ImagingDecoderType = {
259259
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "ImagingDecoder",
260260
.tp_basicsize = sizeof(ImagingDecoderObject),
261261
.tp_dealloc = (destructor)_dealloc,
262-
.tp_flags = Py_TPFLAGS_DEFAULT,
263262
.tp_methods = methods,
264263
.tp_getset = getseters,
265264
};

src/display.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ static PyTypeObject ImagingDisplayType = {
251251
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "ImagingDisplay",
252252
.tp_basicsize = sizeof(ImagingDisplayObject),
253253
.tp_dealloc = (destructor)_delete,
254-
.tp_flags = Py_TPFLAGS_DEFAULT,
255254
.tp_methods = methods,
256255
.tp_getset = getsetters,
257256
};

src/encode.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,6 @@ static PyTypeObject ImagingEncoderType = {
326326
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "ImagingEncoder",
327327
.tp_basicsize = sizeof(ImagingEncoderObject),
328328
.tp_dealloc = (destructor)_dealloc,
329-
.tp_flags = Py_TPFLAGS_DEFAULT,
330329
.tp_methods = methods,
331330
.tp_getset = getseters,
332331
};

src/outline.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,5 @@ static PyTypeObject OutlineType = {
152152
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "Outline",
153153
.tp_basicsize = sizeof(OutlineObject),
154154
.tp_dealloc = (destructor)_outline_dealloc,
155-
.tp_flags = Py_TPFLAGS_DEFAULT,
156155
.tp_methods = _outline_methods,
157156
};

src/path.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,6 @@ static PyTypeObject PyPathType = {
603603
.tp_dealloc = (destructor)path_dealloc,
604604
.tp_as_sequence = &path_as_sequence,
605605
.tp_as_mapping = &path_as_mapping,
606-
.tp_flags = Py_TPFLAGS_DEFAULT,
607606
.tp_methods = methods,
608607
.tp_getset = getsetters,
609608
};

0 commit comments

Comments
 (0)