Skip to content

Commit 21a6093

Browse files
committed
py/modarray: Rename "array" module to "uarray".
Following the other modules like ustruct, ucollections. See issues adafruit#4370 and adafruit#4449.
1 parent 1582c7e commit 21a6093

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

py/builtin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ MP_DECLARE_CONST_FUN_OBJ_2(mp_op_delitem_obj);
8989

9090
extern const mp_obj_module_t mp_module___main__;
9191
extern const mp_obj_module_t mp_module_builtins;
92-
extern const mp_obj_module_t mp_module_array;
92+
extern const mp_obj_module_t mp_module_uarray;
9393
extern const mp_obj_module_t mp_module_collections;
9494
extern const mp_obj_module_t mp_module_io;
9595
extern const mp_obj_module_t mp_module_math;

py/modarray.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@
2929
#if MICROPY_PY_ARRAY
3030

3131
STATIC const mp_rom_map_elem_t mp_module_array_globals_table[] = {
32-
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_array) },
32+
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_uarray) },
3333
{ MP_ROM_QSTR(MP_QSTR_array), MP_ROM_PTR(&mp_type_array) },
3434
};
3535

3636
STATIC MP_DEFINE_CONST_DICT(mp_module_array_globals, mp_module_array_globals_table);
3737

38-
const mp_obj_module_t mp_module_array = {
38+
const mp_obj_module_t mp_module_uarray = {
3939
.base = { &mp_type_module },
4040
.globals = (mp_obj_dict_t*)&mp_module_array_globals,
4141
};
4242

43-
MP_REGISTER_MODULE(MP_QSTR_array, mp_module_array, MICROPY_PY_ARRAY);
43+
MP_REGISTER_MODULE(MP_QSTR_uarray, mp_module_uarray, MICROPY_PY_ARRAY);
4444

4545
#endif

0 commit comments

Comments
 (0)