summaryrefslogtreecommitdiff
path: root/py/objstr.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-31 16:28:13 +0100
committerDamien George <damien.p.george@gmail.com>2014-03-31 16:28:13 +0100
commit15d18069c50f7c02cb71417f3c4ffddff335fe70 (patch)
tree28bdbb76f94f0da7dbf33a621f1e4a4ce35268b2 /py/objstr.c
parentf78b6df1926367b903be1891e564151f099aefc7 (diff)
py: Remove old "run time" functions that were 1 liners.
Diffstat (limited to 'py/objstr.c')
-rw-r--r--py/objstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objstr.c b/py/objstr.c
index 751f93afd..2ca2248b2 100644
--- a/py/objstr.c
+++ b/py/objstr.c
@@ -372,7 +372,7 @@ STATIC mp_obj_t str_split(uint n_args, const mp_obj_t *args) {
while (s < top && splits != 0) {
start = s;
while (s < top && !is_ws(*s)) s++;
- mp_list_append(res, mp_obj_new_str(start, s - start, false));
+ mp_obj_list_append(res, mp_obj_new_str(start, s - start, false));
if (s >= top) {
break;
}
@@ -383,7 +383,7 @@ STATIC mp_obj_t str_split(uint n_args, const mp_obj_t *args) {
}
if (s < top) {
- mp_list_append(res, mp_obj_new_str(s, top - s, false));
+ mp_obj_list_append(res, mp_obj_new_str(s, top - s, false));
}
return res;