py: Don't unnecessarily create a bound method.

This commit is contained in:
Damien George 2015-02-09 16:59:15 +00:00
parent 48244044a2
commit d0df10b2c6

View File

@ -662,8 +662,7 @@ STATIC mp_obj_t instance_getiter(mp_obj_t self_in) {
mp_obj_type_t *type = mp_obj_get_type(self->subobj[0]);
return type->getiter(self->subobj[0]);
}
mp_obj_t meth = mp_obj_new_bound_meth(member[0], self);
return mp_call_function_n_kw(meth, 0, 0, NULL);
return mp_call_method_n_kw(0, 0, member);
}
STATIC mp_int_t instance_get_buffer(mp_obj_t self_in, mp_buffer_info_t *bufinfo, mp_uint_t flags) {