all: Reformat C and Python source code with tools/codeformat.py.
This is run with uncrustify 0.70.1, and black 19.10b0.
This commit is contained in:
@@ -49,7 +49,7 @@ STATIC mp_obj_t object___init__(mp_obj_t self) {
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(object___init___obj, object___init__);
|
||||
|
||||
STATIC mp_obj_t object___new__(mp_obj_t cls) {
|
||||
if (!mp_obj_is_type(cls, &mp_type_type) || !mp_obj_is_instance_type((mp_obj_type_t*)MP_OBJ_TO_PTR(cls))) {
|
||||
if (!mp_obj_is_type(cls, &mp_type_type) || !mp_obj_is_instance_type((mp_obj_type_t *)MP_OBJ_TO_PTR(cls))) {
|
||||
mp_raise_TypeError("arg must be user-type");
|
||||
}
|
||||
// This executes only "__new__" part of instance creation.
|
||||
@@ -117,6 +117,6 @@ const mp_obj_type_t mp_type_object = {
|
||||
.name = MP_QSTR_object,
|
||||
.make_new = object_make_new,
|
||||
#if MICROPY_CPYTHON_COMPAT
|
||||
.locals_dict = (mp_obj_dict_t*)&object_locals_dict,
|
||||
.locals_dict = (mp_obj_dict_t *)&object_locals_dict,
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user