Replace assert(0) with a self-documenting TODO string

pull/660/head
Chris Angelico 2014-06-04 05:04:23 +10:00
rodzic 30583f58d5
commit 9ab8ab2117
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -513,8 +513,7 @@ STATIC mp_obj_t str_rsplit(uint n_args, const mp_obj_t *args) {
int idx = splits;
if (sep == mp_const_none) {
// TODO
assert(0);
assert(!"TODO: rsplit(None,n) not implemented");
} else {
uint sep_len;
const char *sep_str = mp_obj_str_get_data(sep, &sep_len);