summaryrefslogtreecommitdiffstatshomepage
path: root/py/objzip.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-26 19:27:58 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-26 19:27:58 +0000
commit66eaf84b8c2db6afad7ec49eb296a019a2f377df (patch)
treea05406b020ba4102ffd90fdfb5357a301b9de637 /py/objzip.c
parent688e220d268609ec1a5be7a9b532637fe8c1f765 (diff)
downloadmicropython-66eaf84b8c2db6afad7ec49eb296a019a2f377df.tar.gz
micropython-66eaf84b8c2db6afad7ec49eb296a019a2f377df.zip
py: Replace mp_const_stop_iteration object with MP_OBJ_NULL.
Diffstat (limited to 'py/objzip.c')
-rw-r--r--py/objzip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/objzip.c b/py/objzip.c
index b939ff6cb9..553dabba74 100644
--- a/py/objzip.c
+++ b/py/objzip.c
@@ -34,16 +34,16 @@ STATIC mp_obj_t zip_iternext(mp_obj_t self_in) {
mp_obj_zip_t *self = self_in;
mp_obj_t *items;
if (self->n_iters == 0) {
- return mp_const_stop_iteration;
+ return MP_OBJ_NULL;
}
mp_obj_t o = mp_obj_new_tuple(self->n_iters, NULL);
mp_obj_tuple_get(o, NULL, &items);
for (int i = 0; i < self->n_iters; i++) {
mp_obj_t next = rt_iternext(self->iters[i]);
- if (next == mp_const_stop_iteration) {
+ if (next == MP_OBJ_NULL) {
mp_obj_tuple_del(o);
- return mp_const_stop_iteration;
+ return MP_OBJ_NULL;
}
items[i] = next;
}