We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5d54d02 + ab57299 commit 19b59b0Copy full SHA for 19b59b0
py/modio.c
@@ -257,7 +257,11 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_2(resource_stream_obj, resource_stream);
257
#endif
258
259
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
263
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_uio) },
264
+ #endif
265
// Note: mp_builtin_open_obj should be defined by port, it's not
266
// part of the core.
267
{ MP_ROM_QSTR(MP_QSTR_open), MP_ROM_PTR(&mp_builtin_open_obj) },
0 commit comments