summaryrefslogtreecommitdiffstatshomepage
path: root/unix/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/file.c')
-rw-r--r--unix/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/file.c b/unix/file.c
index 3181c08b69..5249b5bba3 100644
--- a/unix/file.c
+++ b/unix/file.c
@@ -64,10 +64,10 @@ static mp_obj_t fdfile_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const
return o;
}
- const char *fname = qstr_str(mp_obj_get_qstr(args[0]));
+ const char *fname = mp_obj_str_get_str(args[0]);
const char *mode_s;
if (n_args > 1) {
- mode_s = qstr_str(mp_obj_get_qstr(args[1]));
+ mode_s = mp_obj_str_get_str(args[1]);
} else {
mode_s = "r";
}