Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-11-17 08:09:57 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-11-17 08:09:57 +0400
commit85bbef0f4ea2e7cacf2f681367f34fb6037d1df1 (patch)
tree1534722e133923a7abc500bb389d822f51ad9c1d /source/gameengine
parentc9209de573ad680dbad6b560c05a90b02b780267 (diff)
python api internals: no need to set the stop-iter exception string.
Diffstat (limited to 'source/gameengine')
-rw-r--r--source/gameengine/Ketsji/KX_PythonSeq.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_PythonSeq.cpp b/source/gameengine/Ketsji/KX_PythonSeq.cpp
index 247f4173d1d..ab4f2c2d2c9 100644
--- a/source/gameengine/Ketsji/KX_PythonSeq.cpp
+++ b/source/gameengine/Ketsji/KX_PythonSeq.cpp
@@ -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 */
}