diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-13 12:52:39 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-13 12:52:39 +0100 |
commit | 640e7e4779d5d6b5e53fa305e5fe824da7783090 (patch) | |
tree | c299b3caf77aca8923a6fdb5554dd5a27ffc4c4e /py/runtime.c | |
parent | f95c68e53638aa363797595b0d618bbe08c56bb3 (diff) | |
parent | 4165cd1c0cfc4eabf446be504787090be84a421b (diff) | |
download | micropython-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.c | 11 |
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) { |