py: Some trivial cosmetic changes, for code style consistency.

This commit is contained in:
Damien George
2015-04-04 15:53:11 +01:00
parent 7f59b4b2ca
commit 2801e6fad8
9 changed files with 19 additions and 19 deletions

View File

@@ -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;