Skip to content

Commit ddb9dba

Browse files
committed
py/modio: Rename module name to "uio" for consistency with other modules.
1 parent 70ff735 commit ddb9dba

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

py/modio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ STATIC const mp_obj_type_t bufwriter_type = {
124124
#endif // MICROPY_PY_IO_BUFFEREDWRITER
125125

126126
STATIC const mp_rom_map_elem_t mp_module_io_globals_table[] = {
127-
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR__io) },
127+
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_uio) },
128128
// Note: mp_builtin_open_obj should be defined by port, it's not
129129
// part of the core.
130130
{ MP_ROM_QSTR(MP_QSTR_open), MP_ROM_PTR(&mp_builtin_open_obj) },
@@ -147,7 +147,7 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_io_globals, mp_module_io_globals_table);
147147

148148
const mp_obj_module_t mp_module_io = {
149149
.base = { &mp_type_module },
150-
.name = MP_QSTR__io,
150+
.name = MP_QSTR_uio,
151151
.globals = (mp_obj_dict_t*)&mp_module_io_globals,
152152
};
153153

py/objmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ STATIC const mp_rom_map_elem_t mp_builtin_module_table[] = {
137137
{ MP_ROM_QSTR(MP_QSTR_array), MP_ROM_PTR(&mp_module_array) },
138138
#endif
139139
#if MICROPY_PY_IO
140-
{ MP_ROM_QSTR(MP_QSTR__io), MP_ROM_PTR(&mp_module_io) },
140+
{ MP_ROM_QSTR(MP_QSTR_uio), MP_ROM_PTR(&mp_module_io) },
141141
#endif
142142
#if MICROPY_PY_COLLECTIONS
143143
{ MP_ROM_QSTR(MP_QSTR__collections), MP_ROM_PTR(&mp_module_collections) },

0 commit comments

Comments
 (0)