commit | e5a3759ff5478392f914ba7a7346da60d9735bf4 | [log] [tgz] |
---|---|---|
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Sat Oct 25 21:04:13 2014 +0300 |
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Sat Oct 25 22:31:33 2014 +0300 |
tree | e8d3511c687c81fe7911984cf192decf5602c300 | |
parent | 8becca7c8289bbadf33abdb6b59618b214a90a30 [diff] [blame] |
py: Factor out mp_obj_is_package() function.
diff --git a/py/runtime.c b/py/runtime.c index 8acd099..f701e0a 100644 --- a/py/runtime.c +++ b/py/runtime.c
@@ -1098,8 +1098,7 @@ } // See if it's a package, then can try FS import - mp_load_method_maybe(module, MP_QSTR___path__, dest); - if (dest[0] == MP_OBJ_NULL) { + if (!mp_obj_is_package(module)) { goto import_error; }