summaryrefslogtreecommitdiff
path: root/py/builtin.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/builtin.c
parentf78b6df1926367b903be1891e564151f099aefc7 (diff)
py: Remove old "run time" functions that were 1 liners.
Diffstat (limited to 'py/builtin.c')
-rw-r--r--py/builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/builtin.c b/py/builtin.c
index d606db17f..57d3aa70b 100644
--- a/py/builtin.c
+++ b/py/builtin.c
@@ -192,7 +192,7 @@ STATIC mp_obj_t mp_builtin_divmod(mp_obj_t o1_in, mp_obj_t o2_in) {
mp_obj_t args[2];
args[0] = MP_OBJ_NEW_SMALL_INT(i1 / i2);
args[1] = MP_OBJ_NEW_SMALL_INT(i1 % i2);
- return mp_build_tuple(2, args);
+ return mp_obj_new_tuple(2, args);
} else {
nlr_jump(mp_obj_new_exception_msg_varg(&mp_type_TypeError, "unsupported operand type(s) for divmod(): '%s' and '%s'", mp_obj_get_type_str(o1_in), mp_obj_get_type_str(o2_in)));
}