Skip to content

Commit 8fd2d82

Browse files
committed
fix ubinascii test
1 parent 8d5e844 commit 8fd2d82

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎extmod/modubinascii.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ STATIC mp_obj_t mod_binascii_b2a_base64(size_t n_args, const mp_obj_t *pos_args,
184184
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
185185
mp_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
186186
uint8_t newline = args[ARG_newline].u_bool;
187+
check_not_unicode(pos_args[0]);
187188
mp_buffer_info_t bufinfo;
188189
mp_get_buffer_raise(pos_args[0], &bufinfo, MP_BUFFER_READ);
189190

0 commit comments

Comments
 (0)