Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
42453dc9
Commit
42453dc9
authored
Apr 12, 2014
by
Paul Sokolovsky
Browse files
py: Make ImportError message match CPython's.
parent
2ff3d9d0
Changes
1
Show whitespace changes
Inline
Side-by-side
py/runtime.c
View file @
42453dc9
...
...
@@ -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
,
"
C
annot import name
'
%s
'
"
,
qstr_str
(
name
)));
nlr_raise
(
mp_obj_new_exception_msg_varg
(
&
mp_type_ImportError
,
"
c
annot import name %s"
,
qstr_str
(
name
)));
}
if
(
dest
[
0
]
!=
MP_OBJ_NULL
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment