contrib/python-zstandard/c-ext/compressionreader.c
changeset 46374 e92ca942ddca
parent 42070 675775c33ab6
equal deleted inserted replaced
46373:711ba0f1057e 46374:e92ca942ddca
   809 };
   809 };
   810 
   810 
   811 void compressionreader_module_init(PyObject* mod) {
   811 void compressionreader_module_init(PyObject* mod) {
   812 	/* TODO make reader a sub-class of io.RawIOBase */
   812 	/* TODO make reader a sub-class of io.RawIOBase */
   813 
   813 
   814 	Py_TYPE(&ZstdCompressionReaderType) = &PyType_Type;
   814 	Py_SET_TYPE(&ZstdCompressionReaderType, &PyType_Type);
   815 	if (PyType_Ready(&ZstdCompressionReaderType) < 0) {
   815 	if (PyType_Ready(&ZstdCompressionReaderType) < 0) {
   816 		return;
   816 		return;
   817 	}
   817 	}
   818 }
   818 }