diff options
author | Damien George <damien.p.george@gmail.com> | 2014-06-05 18:57:38 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-06-05 18:57:38 +0100 |
commit | 11de8399fe5f9ef54589b14470faf8d4fcc5ccaa (patch) | |
tree | 2ea3115b0fc895fc60728453f16b1227809e13b4 /py/objtuple.c | |
parent | c074cd38c365d069616b5620a72db900b15038af (diff) |
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.
Diffstat (limited to 'py/objtuple.c')
-rw-r--r-- | py/objtuple.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |