equal
deleted
inserted
replaced
247 0, /* tp_alloc */ |
247 0, /* tp_alloc */ |
248 PyType_GenericNew, /* tp_new */ |
248 PyType_GenericNew, /* tp_new */ |
249 }; |
249 }; |
250 |
250 |
251 void compressobj_module_init(PyObject* module) { |
251 void compressobj_module_init(PyObject* module) { |
252 Py_TYPE(&ZstdCompressionObjType) = &PyType_Type; |
252 Py_SET_TYPE(&ZstdCompressionObjType, &PyType_Type); |
253 if (PyType_Ready(&ZstdCompressionObjType) < 0) { |
253 if (PyType_Ready(&ZstdCompressionObjType) < 0) { |
254 return; |
254 return; |
255 } |
255 } |
256 } |
256 } |