summaryrefslogtreecommitdiffstatshomepage
path: root/ports/unix/moduselect.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/unix/moduselect.c')
-rw-r--r--ports/unix/moduselect.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ports/unix/moduselect.c b/ports/unix/moduselect.c
index baed88761c..674841bf18 100644
--- a/ports/unix/moduselect.c
+++ b/ports/unix/moduselect.c
@@ -314,10 +314,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
);