diff options
Diffstat (limited to 'stm/file.c')
-rw-r--r-- | stm/file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stm/file.c b/stm/file.c index 283159a69b..e56b05faeb 100644 --- a/stm/file.c +++ b/stm/file.c @@ -53,10 +53,10 @@ static MP_DEFINE_CONST_FUN_OBJ_1(file_obj_close_obj, file_obj_close); // TODO gc hook to close the file if not already closed static const mp_method_t file_methods[] = { - { "read", &file_obj_read_obj }, - { "write", &file_obj_write_obj }, - { "close", &file_obj_close_obj }, - {NULL, NULL}, + { MP_QSTR_read, &file_obj_read_obj }, + { MP_QSTR_write, &file_obj_write_obj }, + { MP_QSTR_close, &file_obj_close_obj }, + { MP_QSTR_NULL, NULL }, }; static const mp_obj_type_t file_obj_type = { |