python api internals: no need to set the stop-iter exception string.

This commit is contained in:
2013-11-17 15:09:57 +11:00
parent c9209de573
commit 85bbef0f4e
5 changed files with 5 additions and 7 deletions

View File

@@ -383,7 +383,7 @@ static PyObject *KX_PythonSeq_nextIter(KX_PythonSeq *self)
self->iter++;
if ( object==NULL ) {
self->iter= -1; /* for reuse */
PyErr_SetString(PyExc_StopIteration, "iterator at end");
PyErr_SetNone(PyExc_StopIteration);
}
return object; /* can be NULL for end of iterator */
}