Inline PyIter_Next() matching what was done for other itertools.
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index 18d55d8..bba0935 100644
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -1860,7 +1860,7 @@
return NULL; /* input not iterable */
}
}
- item = PyIter_Next(lz->active);
+ item = (*Py_TYPE(lz->active)->tp_iternext)(lz->active);
if (item != NULL)
return item;
if (PyErr_Occurred()) {
@@ -3434,7 +3434,7 @@
{
PyObject *val, *oldtotal, *newtotal;
- val = PyIter_Next(lz->it);
+ val = (*Py_TYPE(lz->it)->tp_iternext)(lz->it);
if (val == NULL)
return NULL;