objtype: super: Add stop condition for looking up in base types.

pull/629/head
Paul Sokolovsky 2014-05-21 00:54:46 +03:00
rodzic aa7cf6f72f
commit 6a410789b8
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -735,6 +735,9 @@ STATIC void super_load_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
for (uint i = 0; i < len; i++) {
assert(MP_OBJ_IS_TYPE(items[i], &mp_type_type));
mp_obj_class_lookup(self->obj, (mp_obj_type_t*)items[i], attr, 0, dest);
if (dest[0] != MP_OBJ_NULL) {
return;
}
}
}