py: Fix "TypeError: 'iterator' object is not iterable", doh.

This commit is contained in:
Paul Sokolovsky
2014-03-30 22:00:12 +03:00
parent f39d3b93da
commit f7eaf605c0
9 changed files with 18 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ STATIC mp_obj_t range_it_iternext(mp_obj_t o_in) {
STATIC const mp_obj_type_t range_it_type = {
{ &mp_type_type },
.name = MP_QSTR_iterator,
.getiter = mp_identity,
.iternext = range_it_iternext,
};