diff options
author | Damien George <damien.p.george@gmail.com> | 2015-09-03 23:14:06 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-09-03 23:14:06 +0100 |
commit | 821b7f22fec342cf0b1b61d959e6c07b9543c696 (patch) | |
tree | e5585b0625c7c1d440df768b233a0afd9ddfa9e6 /py/objarray.c | |
parent | 25afc7da0db43754f6b4373a10b66551dd3cbd57 (diff) | |
download | micropython-821b7f22fec342cf0b1b61d959e6c07b9543c696.tar.gz micropython-821b7f22fec342cf0b1b61d959e6c07b9543c696.zip |
py: Use mp_not_implemented consistently for not implemented features.
Diffstat (limited to 'py/objarray.c')
-rw-r--r-- | py/objarray.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/py/objarray.c b/py/objarray.c index b14ad5a653..f5ea794044 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 |