diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-22 14:35:10 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-22 14:35:10 +0000 |
commit | 5fa93b67557f21c22a41449c3266571c427f6798 (patch) | |
tree | 3e009ed9369b7aba8cf5212509a784ecd86e06a3 /unix/file.c | |
parent | 8ae1c1beacc56d440b2cc1e4bd010b100ad4fdd0 (diff) |
Second stage of qstr revamp: uPy str object can be qstr or not.
Diffstat (limited to 'unix/file.c')
-rw-r--r-- | unix/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/file.c b/unix/file.c index 3181c08b6..5249b5bba 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"; } |