summaryrefslogtreecommitdiff
path: root/py/objstringio.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2018-08-08 18:24:49 -0700
committerScott Shawcroft <scott@tannewt.org>2018-08-09 13:29:30 -0700
commit96ebf5bc3fb455162286b9bc31e763f3c4f1c457 (patch)
tree3d06bc866bcf943a0e0ea881a1fcab9826291a1c /py/objstringio.c
parent9da79c880e387ab05a683b67feb8f3da600d937d (diff)
Two fixes and translate more strings.
* Fix finding translations with escaped characters. * Add back \r to translations since its needed by screen.
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