@@ -1387,8 +1387,8 @@ static PyTypeObject BZ2File_Type = {
13871387 0 , /*tp_hash*/
13881388 0 , /*tp_call*/
13891389 0 , /*tp_str*/
1390- 0 , /*tp_getattro*/
1391- 0 , /*tp_setattro*/
1390+ PyObject_GenericGetAttr , /*tp_getattro*/
1391+ PyObject_GenericSetAttr , /*tp_setattro*/
13921392 0 , /*tp_as_buffer*/
13931393 Py_TPFLAGS_DEFAULT |Py_TPFLAGS_BASETYPE , /*tp_flags*/
13941394 BZ2File__doc__ , /*tp_doc*/
@@ -1407,9 +1407,9 @@ static PyTypeObject BZ2File_Type = {
14071407 0 , /*tp_descr_set*/
14081408 0 , /*tp_dictoffset*/
14091409 (initproc )BZ2File_init , /*tp_init*/
1410- 0 , /*tp_alloc*/
1410+ PyType_GenericAlloc , /*tp_alloc*/
14111411 0 , /*tp_new*/
1412- 0 , /*tp_free*/
1412+ _PyObject_Del , /*tp_free*/
14131413 0 , /*tp_is_gc*/
14141414};
14151415
@@ -1652,8 +1652,8 @@ static PyTypeObject BZ2Comp_Type = {
16521652 0 , /*tp_hash*/
16531653 0 , /*tp_call*/
16541654 0 , /*tp_str*/
1655- 0 , /*tp_getattro*/
1656- 0 , /*tp_setattro*/
1655+ PyObject_GenericGetAttr , /*tp_getattro*/
1656+ PyObject_GenericSetAttr , /*tp_setattro*/
16571657 0 , /*tp_as_buffer*/
16581658 Py_TPFLAGS_DEFAULT |Py_TPFLAGS_BASETYPE , /*tp_flags*/
16591659 BZ2Comp__doc__ , /*tp_doc*/
@@ -1672,9 +1672,9 @@ static PyTypeObject BZ2Comp_Type = {
16721672 0 , /*tp_descr_set*/
16731673 0 , /*tp_dictoffset*/
16741674 (initproc )BZ2Comp_init , /*tp_init*/
1675- 0 , /*tp_alloc*/
1676- 0 , /*tp_new*/
1677- 0 , /*tp_free*/
1675+ PyType_GenericAlloc , /*tp_alloc*/
1676+ PyType_GenericNew , /*tp_new*/
1677+ _PyObject_Del , /*tp_free*/
16781678 0 , /*tp_is_gc*/
16791679};
16801680
@@ -1869,8 +1869,8 @@ static PyTypeObject BZ2Decomp_Type = {
18691869 0 , /*tp_hash*/
18701870 0 , /*tp_call*/
18711871 0 , /*tp_str*/
1872- 0 , /*tp_getattro*/
1873- 0 , /*tp_setattro*/
1872+ PyObject_GenericGetAttr , /*tp_getattro*/
1873+ PyObject_GenericSetAttr , /*tp_setattro*/
18741874 0 , /*tp_as_buffer*/
18751875 Py_TPFLAGS_DEFAULT |Py_TPFLAGS_BASETYPE , /*tp_flags*/
18761876 BZ2Decomp__doc__ , /*tp_doc*/
@@ -1889,9 +1889,9 @@ static PyTypeObject BZ2Decomp_Type = {
18891889 0 , /*tp_descr_set*/
18901890 0 , /*tp_dictoffset*/
18911891 (initproc )BZ2Decomp_init , /*tp_init*/
1892- 0 , /*tp_alloc*/
1893- 0 , /*tp_new*/
1894- 0 , /*tp_free*/
1892+ PyType_GenericAlloc , /*tp_alloc*/
1893+ PyType_GenericNew , /*tp_new*/
1894+ _PyObject_Del , /*tp_free*/
18951895 0 , /*tp_is_gc*/
18961896};
18971897
@@ -2089,24 +2089,9 @@ initbz2(void)
20892089 BZ2File_Type .ob_type = & PyType_Type ;
20902090 BZ2File_Type .tp_base = & PyFile_Type ;
20912091 BZ2File_Type .tp_new = PyFile_Type .tp_new ;
2092- BZ2File_Type .tp_getattro = PyObject_GenericGetAttr ;
2093- BZ2File_Type .tp_setattro = PyObject_GenericSetAttr ;
2094- BZ2File_Type .tp_alloc = PyType_GenericAlloc ;
2095- BZ2File_Type .tp_free = _PyObject_Del ;
20962092
20972093 BZ2Comp_Type .ob_type = & PyType_Type ;
2098- BZ2Comp_Type .tp_getattro = PyObject_GenericGetAttr ;
2099- BZ2Comp_Type .tp_setattro = PyObject_GenericSetAttr ;
2100- BZ2Comp_Type .tp_alloc = PyType_GenericAlloc ;
2101- BZ2Comp_Type .tp_new = PyType_GenericNew ;
2102- BZ2Comp_Type .tp_free = _PyObject_Del ;
2103-
21042094 BZ2Decomp_Type .ob_type = & PyType_Type ;
2105- BZ2Decomp_Type .tp_getattro = PyObject_GenericGetAttr ;
2106- BZ2Decomp_Type .tp_setattro = PyObject_GenericSetAttr ;
2107- BZ2Decomp_Type .tp_alloc = PyType_GenericAlloc ;
2108- BZ2Decomp_Type .tp_new = PyType_GenericNew ;
2109- BZ2Decomp_Type .tp_free = _PyObject_Del ;
21102095
21112096 m = Py_InitModule3 ("bz2" , bz2_methods , bz2__doc__ );
21122097
0 commit comments