summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-05 12:11:48 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-05 12:11:48 +0300
commit1e82ef3ae8fd8c7570b3c2094fa8b129b354dcdd (patch)
treebdb771e9f88296f20159759de19500002040f496 /py
parent76c8a4c91bccf27d188b5dcbc44899684d27d8da (diff)
parent9ab8ab211701b259fe92d01a20c0ca45ee15b92c (diff)
downloadmicropython-1e82ef3ae8fd8c7570b3c2094fa8b129b354dcdd.tar.gz
micropython-1e82ef3ae8fd8c7570b3c2094fa8b129b354dcdd.zip
Merge pull request #660 from Rosuav/assert0
Replace assert(0) with a self-documenting TODO string
Diffstat (limited to 'py')
-rw-r--r--py/objstr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/py/objstr.c b/py/objstr.c
index 440f6347e7..012d6404f7 100644
--- a/py/objstr.c
+++ b/py/objstr.c
@@ -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);