diff options
author | Damien George <damien.p.george@gmail.com> | 2018-07-30 12:46:47 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-07-30 12:46:47 +1000 |
commit | aec6fa9160f786c032271de8d9edd8bba050516e (patch) | |
tree | 1433d2412de07f057f6ee73f0ce01b8125a1d28d /py/objdeque.c | |
parent | 571295d090d1eec40b45a88c2c5f54ceaf3c4e15 (diff) |
py/objstr: In format error message, use common string with %s for type.
This error message did not consume all of its variable args, a bug
introduced long ago in baf6f14deb567ab626c1b05213af346108f41700. By fixing
it to use %s (instead of keeping the string as-is and deleting the last
arg) the same error message string is now reused three times in this format
function and gives a code size reduction of around 130 bytes. It also now
gives a better error message when a non-string is passed in as an argument
to format, eg '{:d}'.format([]).
Diffstat (limited to 'py/objdeque.c')
0 files changed, 0 insertions, 0 deletions