From 11de8399fe5f9ef54589b14470faf8d4fcc5ccaa Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 5 Jun 2014 18:57:38 +0100 Subject: py: Small changes to objstr.c, including a bug fix. Some small fixed: - Combine 'x' and 'X' cases in str format code. - Remove trailing spaces from some lines. - Make exception messages consistently begin with lower case (then needed to change those in objarray and objtuple so the same constant string data could be used). - Fix bug with exception message having %c instead of %%c. --- py/objtuple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/objtuple.c') diff --git a/py/objtuple.c b/py/objtuple.c index fc97f53cf..2be04400f 100644 --- a/py/objtuple.c +++ b/py/objtuple.c @@ -166,7 +166,7 @@ mp_obj_t mp_obj_tuple_subscr(mp_obj_t self_in, mp_obj_t index, mp_obj_t value) { mp_bound_slice_t slice; if (!mp_seq_get_fast_slice_indexes(self->len, index, &slice)) { nlr_raise(mp_obj_new_exception_msg(&mp_type_NotImplementedError, - "Only slices with step=1 (aka None) are supported")); + "only slices with step=1 (aka None) are supported")); } mp_obj_tuple_t *res = mp_obj_new_tuple(slice.stop - slice.start, NULL); mp_seq_copy(res->items, self->items + slice.start, res->len, mp_obj_t); -- cgit v1.2.3