diff options
Diffstat (limited to 'py/objlist.c')
-rw-r--r-- | py/objlist.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/py/objlist.c b/py/objlist.c index 28da109912..55ee191207 100644 --- a/py/objlist.c +++ b/py/objlist.c @@ -60,8 +60,7 @@ STATIC void list_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t k } STATIC mp_obj_t list_extend_from_iter(mp_obj_t list, mp_obj_t iterable) { - mp_obj_iter_buf_t iter_buf; - mp_obj_t iter = mp_getiter(iterable, &iter_buf); + mp_obj_t iter = mp_getiter(iterable, NULL); mp_obj_t item; while ((item = mp_iternext(iter)) != MP_OBJ_STOP_ITERATION) { mp_obj_list_append(list, item); |