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/objstrunicode.c | |
parent | 25afc7da0db43754f6b4373a10b66551dd3cbd57 (diff) |
py: Use mp_not_implemented consistently for not implemented features.
Diffstat (limited to 'py/objstrunicode.c')
-rw-r--r-- | py/objstrunicode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/py/objstrunicode.c b/py/objstrunicode.c index 0bb6e045e..174492514 100644 --- a/py/objstrunicode.c +++ b/py/objstrunicode.c @@ -178,8 +178,7 @@ STATIC mp_obj_t str_subscr(mp_obj_t self_in, mp_obj_t index, mp_obj_t value) { mp_obj_t ostart, ostop, ostep; mp_obj_slice_get(index, &ostart, &ostop, &ostep); if (ostep != mp_const_none && ostep != MP_OBJ_NEW_SMALL_INT(1)) { - 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"); } const byte *pstart, *pstop; |