Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
159c0f75
Commit
159c0f75
authored
Jan 20, 2014
by
Paul Sokolovsky
Browse files
Don't implicitly import "sys" module.
parent
fe2690da
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/runtime.c
View file @
159c0f75
...
...
@@ -158,8 +158,8 @@ void rt_init(void) {
mp_obj_t
m_mp
=
mp_obj_new_module
(
qstr_from_str_static
(
"micropython"
));
rt_store_name
(
qstr_from_str_static
(
"micropython"
),
m_mp
);
mp_obj_t
m_sys
=
mp_obj_new_module
(
qstr_from_str_static
(
"sys"
));
rt_store_nam
e
(
qstr_from_str_static
(
"sys"
)
,
m_sys
);
// Precreate sys module, so "import sys" didn't throw exceptions.
mp_obj_new_modul
e
(
qstr_from_str_static
(
"sys"
));
#endif
next_unique_code_id
=
1
;
// 0 indicates "no code"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment