From 12fa5b3a66d6f0034113a56c7d647c7bac5be74c Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Fri, 24 Feb 2017 15:13:07 +0100 Subject: Switch exception throwing to mp_raise helpers. It saves a little code space each time to share the call. --- py/sequence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/sequence.c') diff --git a/py/sequence.c b/py/sequence.c index bc2cfc077..bb34eac4a 100644 --- a/py/sequence.c +++ b/py/sequence.c @@ -256,7 +256,7 @@ mp_obj_t mp_seq_index_obj(const mp_obj_t *items, mp_uint_t len, mp_uint_t n_args } } - mp_raise_msg(&mp_type_ValueError, "object not in sequence"); + mp_raise_ValueError("object not in sequence"); } mp_obj_t mp_seq_count_obj(const mp_obj_t *items, mp_uint_t len, mp_obj_t value) { -- cgit v1.2.3