File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -826,7 +826,7 @@ static int _zstd_exec(PyObject *module) {
826
826
// ZstdDecompressor
827
827
if (add_type_to_module (module ,
828
828
"ZstdDecompressor" ,
829
- & ZstdDecompressor_type_spec ,
829
+ & zstddecompressor_type_spec ,
830
830
& mod_state -> ZstdDecompressor_type ) < 0 ) {
831
831
return -1 ;
832
832
}
@@ -890,9 +890,9 @@ _zstd_free(void *module)
890
890
891
891
static struct PyModuleDef_Slot _zstd_slots [] = {
892
892
{Py_mod_exec , _zstd_exec },
893
+ {Py_mod_multiple_interpreters , Py_MOD_PER_INTERPRETER_GIL_SUPPORTED },
893
894
{Py_mod_gil , Py_MOD_GIL_NOT_USED },
894
-
895
- {0 }
895
+ {0 , NULL },
896
896
};
897
897
898
898
struct PyModuleDef _zstdmodule = {
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ get_zstd_state_from_type(PyTypeObject *type) {
32
32
33
33
extern PyType_Spec zstddict_type_spec ;
34
34
extern PyType_Spec zstdcompressor_type_spec ;
35
- extern PyType_Spec ZstdDecompressor_type_spec ;
35
+ extern PyType_Spec zstddecompressor_type_spec ;
36
36
37
37
struct _zstd_state {
38
38
PyObject * empty_bytes ;
Original file line number Diff line number Diff line change @@ -883,7 +883,7 @@ static PyType_Slot ZstdDecompressor_slots[] = {
883
883
{0 }
884
884
};
885
885
886
- PyType_Spec ZstdDecompressor_type_spec = {
886
+ PyType_Spec zstddecompressor_type_spec = {
887
887
.name = "_zstd.ZstdDecompressor" ,
888
888
.basicsize = sizeof (ZstdDecompressor ),
889
889
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC ,
You can’t perform that action at this time.
0 commit comments