1 parent cf5112b commit b5cef5cCopy full SHA for b5cef5c
1 file changed
py/objobject.c
@@ -59,7 +59,6 @@ STATIC mp_obj_t object___new__(mp_obj_t cls) {
59
}
60
STATIC MP_DEFINE_CONST_FUN_OBJ_1(object___new___fun_obj, object___new__);
61
STATIC MP_DEFINE_CONST_STATICMETHOD_OBJ(object___new___obj, (const mp_obj_t)&object___new___fun_obj);
62
-#endif
63
64
STATIC const mp_map_elem_t object_locals_dict_table[] = {
65
#if MICROPY_CPYTHON_COMPAT
@@ -71,10 +70,13 @@ STATIC const mp_map_elem_t object_locals_dict_table[] = {
71
70
};
72
73
STATIC MP_DEFINE_CONST_DICT(object_locals_dict, object_locals_dict_table);
+#endif
74
75
const mp_obj_type_t mp_type_object = {
76
{ &mp_type_type },
77
.name = MP_QSTR_object,
78
.make_new = object_make_new,
79
+ #if MICROPY_CPYTHON_COMPAT
80
.locals_dict = (mp_obj_t)&object_locals_dict,
81
+ #endif
82
0 commit comments