Commit 8d9cc2e6 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

compile: Print error messages on unimplemented relative imports.

parent 0ae518fb
...@@ -1261,11 +1261,13 @@ void do_import_name(compiler_t *comp, mp_parse_node_t pn, qstr *q1, qstr *q2) { ...@@ -1261,11 +1261,13 @@ void do_import_name(compiler_t *comp, mp_parse_node_t pn, qstr *q1, qstr *q2) {
} else { } else {
// TODO not implemented // TODO not implemented
// This covers relative imports starting with dot(s) like "from .foo import" // This covers relative imports starting with dot(s) like "from .foo import"
compile_syntax_error(comp, "Relative imports not implemented");
assert(0); assert(0);
} }
} else { } else {
// TODO not implemented // TODO not implemented
// This covers relative imports with dots only like "from .. import" // This covers relative imports with dots only like "from .. import"
compile_syntax_error(comp, "Relative imports not implemented");
assert(0); assert(0);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment