diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-02-24 16:46:38 +0100 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-02-24 16:46:38 +0100 |
| commit | 75d6abe3bb57cf75915a056e5e98e4b79efec2ad (patch) | |
| tree | d61e76e2a6c71482515fb1f156b501833d38e165 /py/objarray.c | |
| parent | 35071b36811b3d1043e0a57018b81798b60d72fa (diff) | |
Correct name of mp_raise_NotImplementedError to make error name.
Diffstat (limited to 'py/objarray.c')
| -rw-r--r-- | py/objarray.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/objarray.c b/py/objarray.c index 9cac5a303..51501ed9c 100644 --- a/py/objarray.c +++ b/py/objarray.c @@ -292,7 +292,7 @@ STATIC mp_obj_t array_binary_op(mp_uint_t op, mp_obj_t lhs_in, mp_obj_t rhs_in) // Otherwise, can only look for a scalar numeric value in an array if (MP_OBJ_IS_INT(rhs_in) || mp_obj_is_float(rhs_in)) { - mp_raise_NotImplementError(""); + mp_raise_NotImplementedError(""); } return mp_const_false; @@ -382,7 +382,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)) { - mp_raise_NotImplementError("only slices with step=1 (aka None) are supported"); + mp_raise_NotImplementedError("only slices with step=1 (aka None) are supported"); } if (value != MP_OBJ_SENTINEL) { #if MICROPY_PY_ARRAY_SLICE_ASSIGN @@ -413,7 +413,7 @@ STATIC mp_obj_t array_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t value src_len = bufinfo.len; src_items = bufinfo.buf; } else { - mp_raise_NotImplementError("array/bytes required on right side"); + mp_raise_NotImplementedError("array/bytes required on right side"); } // TODO: check src/dst compat |
