aboutsummaryrefslogtreecommitdiff
path: root/py/objfilter.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objfilter.c')
-rw-r--r--py/objfilter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objfilter.c b/py/objfilter.c
index cb965d8c3..41b2a3bc5 100644
--- a/py/objfilter.c
+++ b/py/objfilter.c
@@ -44,7 +44,7 @@ STATIC mp_obj_t filter_make_new(const mp_obj_type_t *type, size_t n_args, size_t
}
STATIC mp_obj_t filter_iternext(mp_obj_t self_in) {
- mp_check_self(MP_OBJ_IS_TYPE(self_in, &mp_type_filter));
+ mp_check_self(mp_obj_is_type(self_in, &mp_type_filter));
mp_obj_filter_t *self = MP_OBJ_TO_PTR(self_in);
mp_obj_t next;
while ((next = mp_iternext(self->iter)) != MP_OBJ_STOP_ITERATION) {