diff options
-rw-r--r-- | teensy/lexerfrozen.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/teensy/lexerfrozen.c b/teensy/lexerfrozen.c index 03ef800876..21e978dc79 100644 --- a/teensy/lexerfrozen.c +++ b/teensy/lexerfrozen.c @@ -1,11 +1,13 @@ #include <stdio.h> #include "py/lexer.h" +#include "py/runtime.h" +#include "py/mperrno.h" mp_import_stat_t mp_import_stat(const char *path) { return MP_IMPORT_STAT_NO_EXIST; } mp_lexer_t *mp_lexer_new_from_file(const char *filename) { - return NULL; + mp_raise_OSError(MP_ENOENT); } |