diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-03 14:57:53 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-03 22:08:57 +0300 |
commit | 98a627dc03bc02e1b827ead8cc71b02259731551 (patch) | |
tree | d6c57e86f9a95c2aeeb65eec6d9eb3e78461a0d9 /py/builtintables.c | |
parent | 8270e3853dc167d2d7946bb0de7a0f0bb2adde48 (diff) | |
download | micropython-98a627dc03bc02e1b827ead8cc71b02259731551.tar.gz micropython-98a627dc03bc02e1b827ead8cc71b02259731551.zip |
py: Add "io" module.
So far just includes "open" function, which should be supplied by a port.
TODO: Make the module #ifdef'ed.
Diffstat (limited to 'py/builtintables.c')
-rw-r--r-- | py/builtintables.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/py/builtintables.c b/py/builtintables.c index 2cb9240bbf..03fb92e569 100644 --- a/py/builtintables.c +++ b/py/builtintables.c @@ -121,6 +121,9 @@ STATIC const mp_builtin_elem_t builtin_module_table[] = { { MP_QSTR_micropython, (mp_obj_t)&mp_module_micropython }, { MP_QSTR_array, (mp_obj_t)&mp_module_array }, +#if MICROPY_ENABLE_MOD_IO + { MP_QSTR_io, (mp_obj_t)&mp_module_io }, +#endif { MP_QSTR_collections, (mp_obj_t)&mp_module_collections }, #if MICROPY_ENABLE_FLOAT |