py: Some trivial cosmetic changes, for code style consistency.
This commit is contained in:
@@ -79,7 +79,7 @@ STATIC void bound_meth_load_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
|
||||
}
|
||||
#endif
|
||||
|
||||
const mp_obj_type_t bound_meth_type = {
|
||||
STATIC const mp_obj_type_t mp_type_bound_meth = {
|
||||
{ &mp_type_type },
|
||||
.name = MP_QSTR_bound_method,
|
||||
#if MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_DETAILED
|
||||
@@ -93,7 +93,7 @@ const mp_obj_type_t bound_meth_type = {
|
||||
|
||||
mp_obj_t mp_obj_new_bound_meth(mp_obj_t meth, mp_obj_t self) {
|
||||
mp_obj_bound_meth_t *o = m_new_obj(mp_obj_bound_meth_t);
|
||||
o->base.type = &bound_meth_type;
|
||||
o->base.type = &mp_type_bound_meth;
|
||||
o->meth = meth;
|
||||
o->self = self;
|
||||
return o;
|
||||
|
||||
Reference in New Issue
Block a user