summaryrefslogtreecommitdiff
path: root/py/binary.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/binary.c
parentb735b9dbed2132f07793324a40770f4bd96d9ae8 (diff)
parent24e53ad5911f42efb6508b4a8dcf4a196a81494a (diff)
Merge pull request #1104 from tannewt/more_strings
Fixes and translate more strings.
Diffstat (limited to 'py/binary.c')
-rw-r--r--py/binary.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/py/binary.c b/py/binary.c
index 4f02525d7..ca851c936 100644
--- a/py/binary.c
+++ b/py/binary.c
@@ -35,6 +35,8 @@
#include "py/objint.h"
#include "py/runtime.h"
+#include "supervisor/shared/translate.h"
+
// Helpers to work with binary-encoded data
#ifndef alignof
@@ -107,7 +109,7 @@ size_t mp_binary_get_size(char struct_type, char val_type, mp_uint_t *palign) {
}
if (size == 0) {
- mp_raise_ValueError("bad typecode");
+ mp_raise_ValueError(translate("bad typecode"));
}
if (palign != NULL) {