1 parent 8c63ef1 commit 69f1867Copy full SHA for 69f1867
1 file changed
py/runtime.c
@@ -1078,7 +1078,7 @@ mp_obj_t mp_import_from(mp_obj_t module, qstr name) {
1078
args[1] = mp_const_none; // TODO should be globals
1079
args[2] = mp_const_none; // TODO should be locals
1080
args[3] = mp_const_true; // Pass sentinel "non empty" value to force returning of leaf module
1081
- args[4] = 0;
+ args[4] = MP_OBJ_NEW_SMALL_INT(0);
1082
1083
// TODO lookup __import__ and call that instead of going straight to builtin implementation
1084
return mp_builtin___import__(5, args);
0 commit comments