summaryrefslogtreecommitdiff
path: root/py/objstringio.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2018-08-09 20:00:18 -0400
committerGitHub <noreply@github.com>2018-08-09 20:00:18 -0400
commitbbc034cd3dfc46ee7938faedc915fec91610c6a3 (patch)
tree4fe11d359088e41790030fce0763471b76ab3fb4 /py/objstringio.c
parentb735b9dbed2132f07793324a40770f4bd96d9ae8 (diff)
parent24e53ad5911f42efb6508b4a8dcf4a196a81494a (diff)
Merge pull request #1104 from tannewt/more_strings
Fixes and translate more strings.
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