diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2018-08-16 13:34:12 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2018-08-16 17:41:35 -0700 |
| commit | 2cd166b57370ab4877ec2d9666225faeac6127ce (patch) | |
| tree | 645f851b1121ce7f52f4b4cf894844e965c4584d /extmod/moduzlib.c | |
| parent | 137a30ad75803255615a422c15ebcd35fbd31130 (diff) | |
Fix esp and samd
Diffstat (limited to 'extmod/moduzlib.c')
| -rw-r--r-- | extmod/moduzlib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extmod/moduzlib.c b/extmod/moduzlib.c index 0d2366bea..f70ecd92c 100644 --- a/extmod/moduzlib.c +++ b/extmod/moduzlib.c @@ -31,6 +31,8 @@ #include "py/stream.h" #include "py/mperrno.h" +#include "supervisor/shared/translate.h" + #if MICROPY_PY_UZLIB #include "../../lib/uzlib/src/tinf.h" @@ -92,7 +94,7 @@ STATIC mp_obj_t decompio_make_new(const mp_obj_type_t *type, size_t n_args, size dict_opt = uzlib_zlib_parse_header(&o->decomp); if (dict_opt < 0) { header_error: - mp_raise_ValueError("compression header"); + mp_raise_ValueError(translate("compression header")); } dict_sz = 1 << dict_opt; } else { |
