Skip to content

Commit 1e82ef3

Browse files
committed
Merge pull request adafruit#660 from Rosuav/assert0
Replace assert(0) with a self-documenting TODO string
2 parents 76c8a4c + 9ab8ab2 commit 1e82ef3

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)