summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-13 12:52:39 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-13 12:52:39 +0100
commit640e7e4779d5d6b5e53fa305e5fe824da7783090 (patch)
treec299b3caf77aca8923a6fdb5554dd5a27ffc4c4e /py/runtime.c
parentf95c68e53638aa363797595b0d618bbe08c56bb3 (diff)
parent4165cd1c0cfc4eabf446be504787090be84a421b (diff)
downloadmicropython-640e7e4779d5d6b5e53fa305e5fe824da7783090.tar.gz
micropython-640e7e4779d5d6b5e53fa305e5fe824da7783090.zip
Merge pull request #476 from pfalcon/static-sys
Convert sys module to static allocation
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/py/runtime.c b/py/runtime.c
index 51190f233c..a507f97f36 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -53,17 +53,6 @@ void mp_init(void) {
// locals = globals for outer module (see Objects/frameobject.c/PyFrame_New())
dict_locals = dict_globals = &dict_main;
-
-#if MICROPY_CPYTHON_COMPAT
- // Precreate sys module, so "import sys" didn't throw exceptions.
- mp_obj_t m_sys = mp_obj_new_module(MP_QSTR_sys);
- // Avoid warning of unused var
- (void)m_sys;
-#endif
- // init sys.path
- // for efficiency, left to platform-specific startup code
- //mp_sys_path = mp_obj_new_list(0, NULL);
- //mp_store_attr(m_sys, MP_QSTR_path, mp_sys_path);
}
void mp_deinit(void) {