From 2eb844e0b4e649034115dd6ca77dcdecd92ef547 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 18 Dec 2015 02:35:33 +0200 Subject: ports: Rename "machine" module to "umachine". To let unix port implement "machine" functionality on Python level, and keep consistent naming in other ports (baremetal ports will use magic module "symlinking" to still load it on "import machine"). Fixes #1701. --- unix/modmachine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unix/modmachine.c') diff --git a/unix/modmachine.c b/unix/modmachine.c index cada0e0b69..6039ddfd3d 100644 --- a/unix/modmachine.c +++ b/unix/modmachine.c @@ -77,7 +77,7 @@ uintptr_t machine_mem_get_write_addr(mp_obj_t addr_o, uint align) { } STATIC const mp_rom_map_elem_t machine_module_globals_table[] = { - { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_machine) }, + { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_umachine) }, { MP_ROM_QSTR(MP_QSTR_mem8), MP_ROM_PTR(&machine_mem8_obj) }, { MP_ROM_QSTR(MP_QSTR_mem16), MP_ROM_PTR(&machine_mem16_obj) }, @@ -88,7 +88,7 @@ STATIC MP_DEFINE_CONST_DICT(machine_module_globals, machine_module_globals_table const mp_obj_module_t mp_module_machine = { .base = { &mp_type_module }, - .name = MP_QSTR_machine, + .name = MP_QSTR_umachine, .globals = (mp_obj_dict_t*)&machine_module_globals, }; -- cgit v1.2.3