py: Fix super() bug, where it didn't allow instance access.

This is a one-liner fix.  It gets the class-super.py test passing, but
is probably not a complete fix.
This commit is contained in:
Damien George 2014-04-21 02:11:07 +01:00
parent b33d72aa89
commit 806f4aef9a
1 changed files with 1 additions and 1 deletions

View File

@ -527,7 +527,7 @@ STATIC void super_load_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
assert(MP_OBJ_IS_TYPE(items[i], &mp_type_type));
mp_obj_t member = mp_obj_class_lookup((mp_obj_type_t*)items[i], attr);
if (member != MP_OBJ_NULL) {
class_convert_return_attr(self, member, dest);
class_convert_return_attr(self->obj, member, dest);
return;
}
}