diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2017-05-29 10:08:14 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2017-05-29 11:36:05 +0300 |
commit | ca16c3821053e5bf2b87aeb10007f73f31dc1eac (patch) | |
tree | 28b394ba7ef2e107c5fb3112c7ba97f01b6915f1 /py/builtinimport.c | |
parent | e5e49bedcb0ed353ee22ba99078301d9ccd87dbf (diff) | |
download | micropython-ca16c3821053e5bf2b87aeb10007f73f31dc1eac.tar.gz micropython-ca16c3821053e5bf2b87aeb10007f73f31dc1eac.zip |
various: Spelling fixes
Diffstat (limited to 'py/builtinimport.c')
-rw-r--r-- | py/builtinimport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/builtinimport.c b/py/builtinimport.c index d01ebbe73f..6994fc48f4 100644 --- a/py/builtinimport.c +++ b/py/builtinimport.c @@ -271,7 +271,7 @@ mp_obj_t mp_builtin___import__(size_t n_args, const mp_obj_t *args) { if (level != 0) { // What we want to do here is to take name of current module, // chop <level> trailing components, and concatenate with passed-in - // module name, thus resolving relative import name into absolue. + // module name, thus resolving relative import name into absolute. // This even appears to be correct per // http://legacy.python.org/dev/peps/pep-0328/#relative-imports-and-name // "Relative imports use a module's __name__ attribute to determine that @@ -441,7 +441,7 @@ mp_obj_t mp_builtin___import__(size_t n_args, const mp_obj_t *args) { #if MICROPY_CPYTHON_COMPAT // Store module as "__main__" in the dictionary of loaded modules (returned by sys.modules). mp_obj_dict_store(MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_loaded_modules_dict)), MP_OBJ_NEW_QSTR(MP_QSTR___main__), module_obj); - // Store real name in "__main__" attribute. Choosen semi-randonly, to reuse existing qstr's. + // Store real name in "__main__" attribute. Chosen semi-randonly, to reuse existing qstr's. mp_obj_dict_store(MP_OBJ_FROM_PTR(o->globals), MP_OBJ_NEW_QSTR(MP_QSTR___main__), MP_OBJ_NEW_QSTR(mod_name)); #endif } |