From 2cd166b57370ab4877ec2d9666225faeac6127ce Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Thu, 16 Aug 2018 13:34:12 -0700 Subject: Fix esp and samd --- extmod/moduzlib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'extmod/moduzlib.c') 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 { -- cgit v1.2.3