Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
8d9cc2e6
Commit
8d9cc2e6
authored
Mar 30, 2014
by
Paul Sokolovsky
Browse files
compile: Print error messages on unimplemented relative imports.
parent
0ae518fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/compile.c
View file @
8d9cc2e6
...
...
@@ -1261,11 +1261,13 @@ void do_import_name(compiler_t *comp, mp_parse_node_t pn, qstr *q1, qstr *q2) {
}
else
{
// TODO not implemented
// This covers relative imports starting with dot(s) like "from .foo import"
compile_syntax_error
(
comp
,
"Relative imports not implemented"
);
assert
(
0
);
}
}
else
{
// TODO not implemented
// This covers relative imports with dots only like "from .. import"
compile_syntax_error
(
comp
,
"Relative imports not implemented"
);
assert
(
0
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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