@@ -305,7 +305,9 @@ BZ2_Free(void* ctx, void *ptr)
305
305
PyMem_RawFree (ptr );
306
306
}
307
307
308
- // TODO: Convert it to clinic
308
+
309
+ /* Argument Clinic is not used since the Argument Clinic always want to
310
+ check the type which would be wrong here */
309
311
static int
310
312
_bz2_BZ2Compressor___init___impl (BZ2Compressor * self , int compresslevel )
311
313
{
@@ -415,7 +417,7 @@ static PyType_Spec bz2_compressor_type_spec = {
415
417
.name = "_bz2.BZ2Compressor" ,
416
418
.basicsize = sizeof (BZ2Compressor ),
417
419
// Calling PyType_GetModuleState() on a subclass is not safe.
418
- // dbmtype_spec does not have Py_TPFLAGS_BASETYPE flag
420
+ // bz2_compressor_type_spec does not have Py_TPFLAGS_BASETYPE flag
419
421
// which prevents to create a subclass.
420
422
// So calling PyType_GetModuleState() in this file is always safe.
421
423
.flags = Py_TPFLAGS_DEFAULT ,
@@ -655,7 +657,8 @@ _bz2_BZ2Decompressor___reduce___impl(BZ2Decompressor *self)
655
657
return NULL ;
656
658
}
657
659
658
- // TODO: Convert it to clinic
660
+ /* Argument Clinic is not used since the Argument Clinic always want to
661
+ check the type which would be wrong here */
659
662
static int
660
663
_bz2_BZ2Decompressor___init___impl (BZ2Decompressor * self )
661
664
{
@@ -781,7 +784,7 @@ static PyType_Spec bz2_decompressor_type_spec = {
781
784
.name = "_bz2.BZ2Decompressor" ,
782
785
.basicsize = sizeof (BZ2Decompressor ),
783
786
// Calling PyType_GetModuleState() on a subclass is not safe.
784
- // dbmtype_spec does not have Py_TPFLAGS_BASETYPE flag
787
+ // bz2_decompressor_type_spec does not have Py_TPFLAGS_BASETYPE flag
785
788
// which prevents to create a subclass.
786
789
// So calling PyType_GetModuleState() in this file is always safe.
787
790
.flags = Py_TPFLAGS_DEFAULT ,
0 commit comments