diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-10-25 21:04:13 +0300 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-10-25 22:31:33 +0300 |
| commit | e5a3759ff5478392f914ba7a7346da60d9735bf4 (patch) | |
| tree | e8d3511c687c81fe7911984cf192decf5602c300 /py/runtime.c | |
| parent | 8becca7c8289bbadf33abdb6b59618b214a90a30 (diff) | |
py: Factor out mp_obj_is_package() function.
Diffstat (limited to 'py/runtime.c')
| -rw-r--r-- | py/runtime.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/py/runtime.c b/py/runtime.c index 8acd09980..f701e0a8d 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -1098,8 +1098,7 @@ import_error: } // 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; } |
