contrib/python-zstandard/c-ext/compressobj.c
changeset 46446 e92ca942ddca
parent 42070 675775c33ab6
equal deleted inserted replaced
46445:711ba0f1057e 46446:e92ca942ddca
   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 }