equal
deleted
inserted
replaced
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 } |