summaryrefslogtreecommitdiff
path: root/extmod/modure.c
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2022-08-17 16:18:31 +1000
committerJim Mussared <jim.mussared@gmail.com>2023-06-08 17:53:57 +1000
commit30628d1bb782006c88325a086ddfcd5c2e5ddbb4 (patch)
tree7935210e303630cd0594d40e565a29a114774e33 /extmod/modure.c
parentd080d427ebcc263ac6ff792271cec1506e5c81fc (diff)
all: Rename MP_QSTR_umodule to MP_QSTR_module everywhere.
This renames the builtin-modules, such that help('modules') and printing the module object will show "module" rather than "umodule". This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'extmod/modure.c')
-rw-r--r--extmod/modure.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/extmod/modure.c b/extmod/modure.c
index 801e5df89..c27125bf1 100644
--- a/extmod/modure.c
+++ b/extmod/modure.c
@@ -414,7 +414,7 @@ STATIC MP_DEFINE_CONST_DICT(re_locals_dict, re_locals_dict_table);
STATIC MP_DEFINE_CONST_OBJ_TYPE(
re_type,
- MP_QSTR_ure,
+ MP_QSTR_re,
MP_TYPE_FLAG_NONE,
print, re_print,
locals_dict, &re_locals_dict
@@ -451,7 +451,7 @@ MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_re_compile_obj, 1, 2, mod_re_compile);
#if !MICROPY_ENABLE_DYNRUNTIME
STATIC const mp_rom_map_elem_t mp_module_re_globals_table[] = {
- { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_ure) },
+ { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_re) },
{ MP_ROM_QSTR(MP_QSTR_compile), MP_ROM_PTR(&mod_re_compile_obj) },
{ MP_ROM_QSTR(MP_QSTR_match), MP_ROM_PTR(&re_match_obj) },
{ MP_ROM_QSTR(MP_QSTR_search), MP_ROM_PTR(&re_search_obj) },
@@ -470,7 +470,7 @@ const mp_obj_module_t mp_module_ure = {
.globals = (mp_obj_dict_t *)&mp_module_re_globals,
};
-MP_REGISTER_MODULE(MP_QSTR_ure, mp_module_ure);
+MP_REGISTER_MODULE(MP_QSTR_re, mp_module_ure);
#endif
// Source files #include'd here to make sure they're compiled in