Show More
@@ -1092,7 +1092,6 b' static PyTypeObject indexType = {' | |||
|
1092 | 1092 | 0, /* tp_dictoffset */ |
|
1093 | 1093 | (initproc)index_init, /* tp_init */ |
|
1094 | 1094 | 0, /* tp_alloc */ |
|
1095 | PyType_GenericNew, /* tp_new */ | |
|
1096 | 1095 | }; |
|
1097 | 1096 | |
|
1098 | 1097 | /* |
@@ -1150,6 +1149,7 b' static PyMethodDef methods[] = {' | |||
|
1150 | 1149 | |
|
1151 | 1150 | static void module_init(PyObject *mod) |
|
1152 | 1151 | { |
|
1152 | indexType.tp_new = PyType_GenericNew; | |
|
1153 | 1153 | if (PyType_Ready(&indexType) < 0) |
|
1154 | 1154 | return; |
|
1155 | 1155 | Py_INCREF(&indexType); |
General Comments 0
You need to be logged in to leave comments.
Login now