Commit ee659389 authored by Stefan Behnel's avatar Stefan Behnel

merge 0.19.x branch into master

parents 34a1c3a0 15c349ec
......@@ -677,9 +677,11 @@ static PyObject *__Pyx_FindPy2Metaclass(PyObject *bases) {
if (!metaclass) {
PyErr_Clear();
metaclass = (PyObject*) Py_TYPE(base);
Py_INCREF(metaclass);
}
} else {
metaclass = (PyObject *) &PyClass_Type;
Py_INCREF(metaclass);
}
#else
if (PyTuple_Check(bases) && PyTuple_GET_SIZE(bases) > 0) {
......@@ -688,8 +690,8 @@ static PyObject *__Pyx_FindPy2Metaclass(PyObject *bases) {
} else {
metaclass = (PyObject *) &PyType_Type;
}
#endif
Py_INCREF(metaclass);
#endif
return metaclass;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment