py: Don't unnecessarily create a bound method.

pull/1068/merge
Damien George 2015-02-09 16:59:15 +00:00
rodzic 48244044a2
commit d0df10b2c6
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -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) {