summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/moduselect.c
diff options
context:
space:
mode:
Diffstat (limited to 'extmod/moduselect.c')
-rw-r--r--extmod/moduselect.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/extmod/moduselect.c b/extmod/moduselect.c
index 352b15d983..58bd1169a9 100644
--- a/extmod/moduselect.c
+++ b/extmod/moduselect.c
@@ -339,10 +339,9 @@ STATIC MP_DEFINE_CONST_DICT(poll_locals_dict, poll_locals_dict_table);
STATIC MP_DEFINE_CONST_OBJ_TYPE(
mp_type_poll,
MP_QSTR_poll,
- MP_TYPE_FLAG_NONE,
+ MP_TYPE_FLAG_ITER_IS_ITERNEXT,
MP_TYPE_NULL_MAKE_NEW,
- getiter, mp_identity_getiter,
- iternext, poll_iternext,
+ iter, poll_iternext,
locals_dict, &poll_locals_dict
);