summaryrefslogtreecommitdiffstatshomepage
path: root/py/moduerrno.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 /py/moduerrno.c
parentd080d427ebcc263ac6ff792271cec1506e5c81fc (diff)
downloadmicropython-30628d1bb782006c88325a086ddfcd5c2e5ddbb4.tar.gz
micropython-30628d1bb782006c88325a086ddfcd5c2e5ddbb4.zip
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 'py/moduerrno.c')
-rw-r--r--py/moduerrno.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/moduerrno.c b/py/moduerrno.c
index 1b16fd9d9e..e197f921e1 100644
--- a/py/moduerrno.c
+++ b/py/moduerrno.c
@@ -82,7 +82,7 @@ STATIC const mp_obj_dict_t errorcode_dict = {
#endif
STATIC const mp_rom_map_elem_t mp_module_uerrno_globals_table[] = {
- { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_uerrno) },
+ { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_errno) },
#if MICROPY_PY_UERRNO_ERRORCODE
{ MP_ROM_QSTR(MP_QSTR_errorcode), MP_ROM_PTR(&errorcode_dict) },
#endif
@@ -99,7 +99,7 @@ const mp_obj_module_t mp_module_uerrno = {
.globals = (mp_obj_dict_t *)&mp_module_uerrno_globals,
};
-MP_REGISTER_MODULE(MP_QSTR_uerrno, mp_module_uerrno);
+MP_REGISTER_MODULE(MP_QSTR_errno, mp_module_uerrno);
qstr mp_errno_to_str(mp_obj_t errno_val) {
#if MICROPY_PY_UERRNO_ERRORCODE