summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/runtime.c b/py/runtime.c
index cb4d16be18..ecaf40deb4 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -1185,7 +1185,9 @@ void *const mp_fun_table[MP_F_NUMBER_OF] = {
mp_import_name,
mp_import_from,
mp_import_all,
+#if MICROPY_PY_BUILTINS_SLICE
mp_obj_new_slice,
+#endif
mp_unpack_sequence,
mp_unpack_ex,
};