summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
Diffstat (limited to 'py')
-rw-r--r--py/compile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/compile.c b/py/compile.c
index 0e33ca2688..f475979d11 100644
--- a/py/compile.c
+++ b/py/compile.c
@@ -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);
}
}