contrib/python-zstandard/c-ext/compressiondict.c
changeset 46374 e92ca942ddca
parent 42070 675775c33ab6
equal deleted inserted replaced
46373:711ba0f1057e 46374:e92ca942ddca
   398 	0,                              /* tp_alloc */
   398 	0,                              /* tp_alloc */
   399 	PyType_GenericNew,              /* tp_new */
   399 	PyType_GenericNew,              /* tp_new */
   400 };
   400 };
   401 
   401 
   402 void compressiondict_module_init(PyObject* mod) {
   402 void compressiondict_module_init(PyObject* mod) {
   403 	Py_TYPE(&ZstdCompressionDictType) = &PyType_Type;
   403 	Py_SET_TYPE(&ZstdCompressionDictType, &PyType_Type);
   404 	if (PyType_Ready(&ZstdCompressionDictType) < 0) {
   404 	if (PyType_Ready(&ZstdCompressionDictType) < 0) {
   405 		return;
   405 		return;
   406 	}
   406 	}
   407 
   407 
   408 	Py_INCREF((PyObject*)&ZstdCompressionDictType);
   408 	Py_INCREF((PyObject*)&ZstdCompressionDictType);