summaryrefslogtreecommitdiff
path: root/shared-bindings/time
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2017-08-27 15:02:50 -0400
committerDan Halbert <halbert@halwitz.org>2017-08-27 15:02:50 -0400
commitc679c80c710fd4a0e37ad87200d8a721e19727aa (patch)
treef71c6e606d2f3ac56961c2b4533b36e92aee5fcb /shared-bindings/time
parentef61b5ecb59e9b4e37e3e3c023c62d583c23eb16 (diff)
Modernize module and class static dicts; update freetouch
Diffstat (limited to 'shared-bindings/time')
-rw-r--r--shared-bindings/time/__init__.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/shared-bindings/time/__init__.c b/shared-bindings/time/__init__.c
index a224f9026..105758951 100644
--- a/shared-bindings/time/__init__.c
+++ b/shared-bindings/time/__init__.c
@@ -133,13 +133,13 @@ const mp_obj_namedtuple_type_t struct_time_type_obj = {
};
#endif
-STATIC const mp_map_elem_t time_module_globals_table[] = {
- { MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_time) },
+STATIC const mp_rom_map_elem_t time_module_globals_table[] = {
+ { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_time) },
- { MP_OBJ_NEW_QSTR(MP_QSTR_monotonic), (mp_obj_t)&time_monotonic_obj },
- { MP_OBJ_NEW_QSTR(MP_QSTR_sleep), (mp_obj_t)&time_sleep_obj },
+ { MP_ROM_QSTR(MP_QSTR_monotonic), MP_ROM_PTR(&time_monotonic_obj) },
+ { MP_ROM_QSTR(MP_QSTR_sleep), MP_ROM_PTR(&time_sleep_obj) },
#if MICROPY_PY_COLLECTIONS
- { MP_OBJ_NEW_QSTR(MP_QSTR_struct_time), (mp_obj_t)&struct_time_type_obj },
+ { MP_ROM_QSTR(MP_QSTR_struct_time), MP_ROM_PTR(&struct_time_type_obj) },
#endif
};