py: Fix configurability of builtin slice.
diff --git a/py/objarray.c b/py/objarray.c
index 91fcec6..44fbf2f 100644
--- a/py/objarray.c
+++ b/py/objarray.c
@@ -169,7 +169,9 @@
return MP_OBJ_NULL; // op not supported
} else {
mp_obj_array_t *o = self_in;
- if (MP_OBJ_IS_TYPE(index_in, &mp_type_slice)) {
+ if (0) {
+#if MICROPY_PY_BUILTINS_SLICE
+ } else if (MP_OBJ_IS_TYPE(index_in, &mp_type_slice)) {
if (value != MP_OBJ_SENTINEL) {
// Only getting a slice is suported so far, not assignment
// TODO: confirmed that both bytearray and array.array support
@@ -187,6 +189,7 @@
byte *p = o->items;
memcpy(res->items, p + slice.start * sz, (slice.stop - slice.start) * sz);
return res;
+#endif
} else {
uint index = mp_get_index(o->base.type, o->len, index_in, false);
if (value == MP_OBJ_SENTINEL) {