Skip to content

Commit 9ab8ab2

Browse files
committed
Replace assert(0) with a self-documenting TODO string
1 parent 30583f5 commit 9ab8ab2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

py/objstr.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,7 @@ STATIC mp_obj_t str_rsplit(uint n_args, const mp_obj_t *args) {
513513
int idx = splits;
514514

515515
if (sep == mp_const_none) {
516-
// TODO
517-
assert(0);
516+
assert(!"TODO: rsplit(None,n) not implemented");
518517
} else {
519518
uint sep_len;
520519
const char *sep_str = mp_obj_str_get_data(sep, &sep_len);

0 commit comments

Comments
 (0)