diff options
author | Damien George <damien.p.george@gmail.com> | 2019-01-30 22:04:54 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-02-12 14:54:51 +1100 |
commit | f03601779e7abe733a8411d62329098d47d9f215 (patch) | |
tree | d2d82d693c1dedef4043163fcf594e34a5f03aea /extmod/vfs.c | |
parent | 054dd33ebad67f5c8f328036fd32c3871589a386 (diff) | |
download | micropython-f03601779e7abe733a8411d62329098d47d9f215.tar.gz micropython-f03601779e7abe733a8411d62329098d47d9f215.zip |
extmod: Convert legacy uppercase macro names to lowercase.
Diffstat (limited to 'extmod/vfs.c')
-rw-r--r-- | extmod/vfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extmod/vfs.c b/extmod/vfs.c index fd7f2a4feb..f99be3098b 100644 --- a/extmod/vfs.c +++ b/extmod/vfs.c @@ -227,7 +227,7 @@ mp_obj_t mp_vfs_umount(mp_obj_t mnt_in) { mp_vfs_mount_t *vfs = NULL; size_t mnt_len; const char *mnt_str = NULL; - if (MP_OBJ_IS_STR(mnt_in)) { + if (mp_obj_is_str(mnt_in)) { mnt_str = mp_obj_str_get_data(mnt_in, &mnt_len); } for (mp_vfs_mount_t **vfsp = &MP_STATE_VM(vfs_mount_table); *vfsp != NULL; vfsp = &(*vfsp)->next) { @@ -270,7 +270,7 @@ mp_obj_t mp_vfs_open(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) #if MICROPY_VFS_POSIX // If the file is an integer then delegate straight to the POSIX handler - if (MP_OBJ_IS_SMALL_INT(args[ARG_file].u_obj)) { + if (mp_obj_is_small_int(args[ARG_file].u_obj)) { return mp_vfs_posix_file_open(&mp_type_textio, args[ARG_file].u_obj, args[ARG_mode].u_obj); } #endif |