changeset 46374 | e92ca942ddca |
parent 42070 | 675775c33ab6 |
--- a/contrib/python-zstandard/c-ext/compressionreader.c Wed Jan 20 14:47:13 2021 +0100 +++ b/contrib/python-zstandard/c-ext/compressionreader.c Mon Dec 14 10:44:29 2020 +0100 @@ -811,7 +811,7 @@ void compressionreader_module_init(PyObject* mod) { /* TODO make reader a sub-class of io.RawIOBase */ - Py_TYPE(&ZstdCompressionReaderType) = &PyType_Type; + Py_SET_TYPE(&ZstdCompressionReaderType, &PyType_Type); if (PyType_Ready(&ZstdCompressionReaderType) < 0) { return; }