Skip to content

Commit 42453dc

Browse files
committed
py: Make ImportError message match CPython's.
1 parent 2ff3d9d commit 42453dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/runtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ mp_obj_t mp_import_from(mp_obj_t module, qstr name) {
10501050
if (dest[1] != MP_OBJ_NULL) {
10511051
// Hopefully we can't import bound method from an object
10521052
import_error:
1053-
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ImportError, "Cannot import name '%s'", qstr_str(name)));
1053+
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ImportError, "cannot import name %s", qstr_str(name)));
10541054
}
10551055

10561056
if (dest[0] != MP_OBJ_NULL) {

0 commit comments

Comments
 (0)