Skip to content

Commit ab57299

Browse files
committed
Update the io module's __name__
1 parent 3762f4e commit ab57299

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

py/modio.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,11 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_2(resource_stream_obj, resource_stream);
257257
#endif
258258

259259
STATIC const mp_rom_map_elem_t mp_module_io_globals_table[] = {
260+
#if CIRCUITPY
261+
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_io) },
262+
#else
260263
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_uio) },
264+
#endif
261265
// Note: mp_builtin_open_obj should be defined by port, it's not
262266
// part of the core.
263267
{ MP_ROM_QSTR(MP_QSTR_open), MP_ROM_PTR(&mp_builtin_open_obj) },

0 commit comments

Comments
 (0)