summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/pyexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/pyexec.c')
-rw-r--r--stmhal/pyexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/pyexec.c b/stmhal/pyexec.c
index 6bf8009a19..36a496aa13 100644
--- a/stmhal/pyexec.c
+++ b/stmhal/pyexec.c
@@ -66,7 +66,7 @@ STATIC int parse_compile_execute(mp_lexer_t *lex, mp_parse_input_kind_t input_ki
mp_parse_error_kind_t parse_error_kind;
mp_parse_node_t pn = mp_parse(lex, input_kind, &parse_error_kind);
- qstr source_name = mp_lexer_source_name(lex);
+ qstr source_name = lex->source_name;
// check for parse error
if (pn == MP_PARSE_NODE_NULL) {