From 821b7f22fec342cf0b1b61d959e6c07b9543c696 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 3 Sep 2015 23:14:06 +0100 Subject: py: Use mp_not_implemented consistently for not implemented features. --- py/objarray.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'py/objarray.c') diff --git a/py/objarray.c b/py/objarray.c index b14ad5a65..f5ea79404 100644 --- a/py/objarray.c +++ b/py/objarray.c @@ -365,8 +365,7 @@ STATIC mp_obj_t array_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t value } else if (MP_OBJ_IS_TYPE(index_in, &mp_type_slice)) { mp_bound_slice_t slice; if (!mp_seq_get_fast_slice_indexes(o->len, index_in, &slice)) { - nlr_raise(mp_obj_new_exception_msg(&mp_type_NotImplementedError, - "only slices with step=1 (aka None) are supported")); + mp_not_implemented("only slices with step=1 (aka None) are supported"); } if (value != MP_OBJ_SENTINEL) { #if MICROPY_PY_ARRAY_SLICE_ASSIGN -- cgit v1.2.3