contrib/python-zstandard/c-ext/decompressor.c
changeset 46374 e92ca942ddca
parent 42812 a4e32fd539ab
equal deleted inserted replaced
46373:711ba0f1057e 46374:e92ca942ddca
  1809 	0,                              /* tp_alloc */
  1809 	0,                              /* tp_alloc */
  1810 	PyType_GenericNew,              /* tp_new */
  1810 	PyType_GenericNew,              /* tp_new */
  1811 };
  1811 };
  1812 
  1812 
  1813 void decompressor_module_init(PyObject* mod) {
  1813 void decompressor_module_init(PyObject* mod) {
  1814 	Py_TYPE(&ZstdDecompressorType) = &PyType_Type;
  1814 	Py_SET_TYPE(&ZstdDecompressorType, &PyType_Type);
  1815 	if (PyType_Ready(&ZstdDecompressorType) < 0) {
  1815 	if (PyType_Ready(&ZstdDecompressorType) < 0) {
  1816 		return;
  1816 		return;
  1817 	}
  1817 	}
  1818 
  1818 
  1819 	Py_INCREF((PyObject*)&ZstdDecompressorType);
  1819 	Py_INCREF((PyObject*)&ZstdDecompressorType);