diff options
author | Damien George <damien.p.george@gmail.com> | 2015-09-01 15:35:31 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-09-01 15:35:31 +0100 |
commit | 22602cc37bc2454568cc9e8834a8ba444c85be05 (patch) | |
tree | 8ae9a04d2ba633295fd0b33dba416e09734bde03 /py | |
parent | 1b693543aa5dcc3c5d35c63f4d657689d2f8fc1e (diff) |
py/objstr: Make str.rsplit(None,n) raise NotImpl instead of assert(0).
Diffstat (limited to 'py')
-rw-r--r-- | py/objstr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objstr.c b/py/objstr.c index 814dd9e13..f1e4e6b7b 100644 --- a/py/objstr.c +++ b/py/objstr.c @@ -578,7 +578,7 @@ STATIC mp_obj_t str_rsplit(mp_uint_t n_args, const mp_obj_t *args) { mp_int_t idx = splits; if (sep == mp_const_none) { - assert(!"TODO: rsplit(None,n) not implemented"); + mp_not_implemented("rsplit(None,n)"); } else { mp_uint_t sep_len; const char *sep_str = mp_obj_str_get_data(sep, &sep_len); |