summaryrefslogtreecommitdiffstatshomepage
path: root/unix/modmachine.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-18 02:35:33 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-18 02:39:52 +0200
commit2eb844e0b4e649034115dd6ca77dcdecd92ef547 (patch)
tree0875f0215c665883f2f7f8d489d53dcefcc648e0 /unix/modmachine.c
parent2195046365c661551c30d4156cecafa603214375 (diff)
downloadmicropython-2eb844e0b4e649034115dd6ca77dcdecd92ef547.tar.gz
micropython-2eb844e0b4e649034115dd6ca77dcdecd92ef547.zip
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.
Diffstat (limited to 'unix/modmachine.c')
-rw-r--r--unix/modmachine.c4
1 files changed, 2 insertions, 2 deletions
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,
};