summaryrefslogtreecommitdiffstatshomepage
path: root/py/builtinimport.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/builtinimport.c')
-rw-r--r--py/builtinimport.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/py/builtinimport.c b/py/builtinimport.c
index fd0689c681..e2137237f9 100644
--- a/py/builtinimport.c
+++ b/py/builtinimport.c
@@ -83,12 +83,12 @@ void do_load(mp_obj_t module_obj, vstr_t *file) {
qstr source_name = mp_lexer_source_name(lex);
// save the old context
- mp_map_t *old_locals = mp_locals_get();
- mp_map_t *old_globals = mp_globals_get();
+ mp_obj_dict_t *old_locals = mp_locals_get();
+ mp_obj_dict_t *old_globals = mp_globals_get();
// set the new context
- mp_locals_set(mp_obj_dict_get_map(mp_obj_module_get_globals(module_obj)));
- mp_globals_set(mp_obj_dict_get_map(mp_obj_module_get_globals(module_obj)));
+ mp_locals_set(mp_obj_module_get_globals(module_obj));
+ mp_globals_set(mp_obj_module_get_globals(module_obj));
// parse the imported script
mp_parse_error_kind_t parse_error_kind;