summaryrefslogtreecommitdiff
path: root/py/objstringio.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objstringio.c')
-rw-r--r--py/objstringio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/py/objstringio.c b/py/objstringio.c
index b405ee21e..d21248ad7 100644
--- a/py/objstringio.c
+++ b/py/objstringio.c
@@ -33,12 +33,14 @@
#include "py/runtime.h"
#include "py/stream.h"
+#include "supervisor/shared/translate.h"
+
#if MICROPY_PY_IO
#if MICROPY_CPYTHON_COMPAT
STATIC void check_stringio_is_open(const mp_obj_stringio_t *o) {
if (o->vstr == NULL) {
- mp_raise_ValueError("I/O operation on closed file");
+ mp_raise_ValueError(translate("I/O operation on closed file"));
}
}
#else