py: Make ImportError message match CPython's.

This commit is contained in:
Paul Sokolovsky 2014-04-12 03:00:40 +03:00
parent 2ff3d9d0b2
commit 42453dc98e
1 changed files with 1 additions and 1 deletions

View File

@ -1050,7 +1050,7 @@ mp_obj_t mp_import_from(mp_obj_t module, qstr name) {
if (dest[1] != MP_OBJ_NULL) {
// Hopefully we can't import bound method from an object
import_error:
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ImportError, "Cannot import name '%s'", qstr_str(name)));
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ImportError, "cannot import name %s", qstr_str(name)));
}
if (dest[0] != MP_OBJ_NULL) {