From 96534e598ea6ca7f67b31c547b50c27331396158 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Thu, 16 Aug 2018 14:37:06 -0700 Subject: Fix unix coverage and update translations. --- extmod/vfs_posix.c | 1 + extmod/vfs_posix_file.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'extmod') 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 #include #include #include 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 -- cgit v1.2.3