Skip to content
Snippets Groups Projects
Commit aec6fa91 authored by Damien George's avatar Damien George
Browse files

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 baf6f14d.  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([]).
parent 571295d0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment