Commit dbdebb8d authored by Ronan Lamy's avatar Ronan Lamy

Always define __Pyx_PyIter_Next_ErrorNoIterator()

It is used even when CYTHON_USE_TYPE_SLOTS is disabled.
parent 9f18281a
...@@ -186,12 +186,10 @@ static PyObject *__Pyx_PyIter_Next2Default(PyObject* defval) { ...@@ -186,12 +186,10 @@ static PyObject *__Pyx_PyIter_Next2Default(PyObject* defval) {
return NULL; return NULL;
} }
#if CYTHON_USE_TYPE_SLOTS
static void __Pyx_PyIter_Next_ErrorNoIterator(PyObject *iterator) { static void __Pyx_PyIter_Next_ErrorNoIterator(PyObject *iterator) {
PyErr_Format(PyExc_TypeError, PyErr_Format(PyExc_TypeError,
"%.200s object is not an iterator", Py_TYPE(iterator)->tp_name); "%.200s object is not an iterator", Py_TYPE(iterator)->tp_name);
} }
#endif
// originally copied from Py3's builtin_next() // originally copied from Py3's builtin_next()
static CYTHON_INLINE PyObject *__Pyx_PyIter_Next2(PyObject* iterator, PyObject* defval) { static CYTHON_INLINE PyObject *__Pyx_PyIter_Next2(PyObject* iterator, PyObject* defval) {
......
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