File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -96,22 +96,27 @@ _convert_argb2rgba(PyObject *self, PyObject *args)
96
96
return ret ;
97
97
}
98
98
99
- static PyMethodDef ConvertMethods [] = {
99
+ static PyMethodDef _convert_methods [] = {
100
100
{"argb2rgba" , _convert_argb2rgba , METH_VARARGS ,
101
101
"Convert aRGB to RGBA in place." },
102
102
{NULL , NULL , 0 , NULL }
103
103
};
104
104
105
- static struct PyModuleDef convertmodule = {
105
+ static PyModuleDef_Slot _convert_slots [] = {
106
+ {0 , NULL }
107
+ };
108
+
109
+ static struct PyModuleDef _convert_module = {
106
110
PyModuleDef_HEAD_INIT ,
107
111
"_convert" ,
108
112
NULL ,
109
113
0 ,
110
- ConvertMethods
114
+ _convert_methods ,
115
+ _convert_slots ,
111
116
};
112
117
113
118
PyMODINIT_FUNC
114
119
PyInit__convert (void )
115
120
{
116
- return PyModule_Create2 ( & convertmodule , PYTHON_API_VERSION );
121
+ return PyModuleDef_Init ( & _convert_module );
117
122
}
You can’t perform that action at this time.
0 commit comments