diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-26 19:27:58 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-26 19:27:58 +0000 |
commit | 66eaf84b8c2db6afad7ec49eb296a019a2f377df (patch) | |
tree | a05406b020ba4102ffd90fdfb5357a301b9de637 /py/objgetitemiter.c | |
parent | 688e220d268609ec1a5be7a9b532637fe8c1f765 (diff) |
py: Replace mp_const_stop_iteration object with MP_OBJ_NULL.
Diffstat (limited to 'py/objgetitemiter.c')
-rw-r--r-- | py/objgetitemiter.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/py/objgetitemiter.c b/py/objgetitemiter.c index 08ef66f29..fff3f3807 100644 --- a/py/objgetitemiter.c +++ b/py/objgetitemiter.c @@ -1,3 +1,4 @@ +#include <stdlib.h> #include "nlr.h" #include "misc.h" @@ -25,8 +26,8 @@ STATIC mp_obj_t it_iternext(mp_obj_t self_in) { } else { // an exception was raised if (mp_obj_get_type(nlr.ret_val) == &mp_type_StopIteration) { - // return mp_const_stop_iteration instead of raising StopIteration - return mp_const_stop_iteration; + // return MP_OBJ_NULL instead of raising StopIteration + return MP_OBJ_NULL; } else { // re-raise exception nlr_jump(nlr.ret_val); |