aboutsummaryrefslogtreecommitdiff
path: root/py/objmodule.c
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2020-06-18 11:19:14 +0200
committerDamien George <damien@micropython.org>2020-09-04 00:10:24 +1000
commit40ad8f1666b265dafc7844d765f45cfae4b6299f (patch)
treed073a4b4f791f53d1a73c47d029bf2b49f041d5e /py/objmodule.c
parentb0932fcf2e2f9a81abf7737ed4b2573bd9ad4a49 (diff)
all: Rename "sys" module to "usys".
This is consistent with the other 'micro' modules and allows implementing additional features in Python via e.g. micropython-lib's sys. Note this is a breaking change (not backwards compatible) for ports which do not enable weak links, as "import sys" must now be replaced with "import usys".
Diffstat (limited to 'py/objmodule.c')
-rw-r--r--py/objmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objmodule.c b/py/objmodule.c
index 060e1bc1e..a1f9d9d7f 100644
--- a/py/objmodule.c
+++ b/py/objmodule.c
@@ -159,7 +159,7 @@ STATIC const mp_rom_map_elem_t mp_builtin_module_table[] = {
#endif
#endif
#if MICROPY_PY_SYS
- { MP_ROM_QSTR(MP_QSTR_sys), MP_ROM_PTR(&mp_module_sys) },
+ { MP_ROM_QSTR(MP_QSTR_usys), MP_ROM_PTR(&mp_module_sys) },
#endif
#if MICROPY_PY_GC && MICROPY_ENABLE_GC
{ MP_ROM_QSTR(MP_QSTR_gc), MP_ROM_PTR(&mp_module_gc) },