diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2018-08-16 14:37:06 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2018-08-16 17:41:53 -0700 |
| commit | 96534e598ea6ca7f67b31c547b50c27331396158 (patch) | |
| tree | cc0e6f7e1e3670c242c2c6aaae0c467b78c63e1c /extmod | |
| parent | 76e0373576529aa41fc90e142f8b071b6c732c2f (diff) | |
Fix unix coverage and update translations.
Diffstat (limited to 'extmod')
| -rw-r--r-- | extmod/vfs_posix.c | 1 | ||||
| -rw-r--r-- | extmod/vfs_posix_file.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/extmod/vfs_posix.c b/extmod/vfs_posix.c index 9ee4900ee..39e197f29 100644 --- a/extmod/vfs_posix.c +++ b/extmod/vfs_posix.c @@ -31,6 +31,7 @@ #if defined(MICROPY_VFS_POSIX) && MICROPY_VFS_POSIX +#include <stdio.h> #include <string.h> #include <sys/stat.h> #include <dirent.h> diff --git a/extmod/vfs_posix_file.c b/extmod/vfs_posix_file.c index d3ed4fe21..3eca47eb4 100644 --- a/extmod/vfs_posix_file.c +++ b/extmod/vfs_posix_file.c @@ -27,6 +27,7 @@ #include "py/runtime.h" #include "py/stream.h" #include "extmod/vfs_posix.h" +#include "supervisor/shared/translate.h" #if defined(MICROPY_VFS_POSIX) && MICROPY_VFS_POSIX @@ -44,7 +45,7 @@ typedef struct _mp_obj_vfs_posix_file_t { #ifdef MICROPY_CPYTHON_COMPAT STATIC void check_fd_is_open(const mp_obj_vfs_posix_file_t *o) { if (o->fd < 0) { - nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, "I/O operation on closed file")); + nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, translate("I/O operation on closed file"))); } } #else |
