summaryrefslogtreecommitdiffstatshomepage
path: root/py/objmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objmodule.c')
-rw-r--r--py/objmodule.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/py/objmodule.c b/py/objmodule.c
index 2d6f9555e8..df49ec6707 100644
--- a/py/objmodule.c
+++ b/py/objmodule.c
@@ -22,15 +22,9 @@ void module_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_
}
const mp_obj_type_t module_type = {
- { &mp_const_type },
- "module",
- module_print, // print
- NULL, // make_new
- NULL, // call_n
- NULL, // unary_op
- NULL, // binary_op
- NULL, // getiter
- NULL, // iternext
+ .base = { &mp_const_type },
+ .name = "module",
+ .print = module_print,
.methods = {{NULL, NULL},},
};