diff options
Diffstat (limited to 'py/objarray.c')
-rw-r--r-- | py/objarray.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/py/objarray.c b/py/objarray.c index 8e1d32f0f4..ed666df8f0 100644 --- a/py/objarray.c +++ b/py/objarray.c @@ -94,9 +94,6 @@ STATIC void array_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t #if MICROPY_PY_BUILTINS_BYTEARRAY || MICROPY_PY_ARRAY STATIC mp_obj_array_t *array_new(char typecode, mp_uint_t n) { int typecode_size = mp_binary_get_size('@', typecode, NULL); - if (typecode_size == 0) { - mp_raise_msg(&mp_type_ValueError, "bad typecode"); - } mp_obj_array_t *o = m_new_obj(mp_obj_array_t); #if MICROPY_PY_BUILTINS_BYTEARRAY && MICROPY_PY_ARRAY o->base.type = (typecode == BYTEARRAY_TYPECODE) ? &mp_type_bytearray : &mp_type_array; |