Ran
|
Files
236
|
Run time
9min
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
<a href="https://github.com/micropython/micropython/commit/<a class=hub.com/micropython/micropython/commit/<a class="double-link" href="https://git"><a class=hub.com/micropython/micropython/commit/<a class="double-link" href="https://git"><a class=hub.com/micropython/micropython/commit/<a class="double-link" href="https://git"><a class=hub.com/micropython/micropython/commit/aec6fa9160f786c032271de8d9edd8bba050516e">aec6fa916<a href="https://github.com/micropython/micropython/commit/aec6fa9160f786c032271de8d9edd8bba050516e">">&lt;a href=&quot;https://github.com/micropython/micropython/commit/</a><a class="double-link" href="https://github.com/micropython/micropython/commit/&lt;a class=&quot;double-link&quot; href=&quot;https://git">&lt;a class=</a>hub.com/micropython/micropython/commit/aec6fa9160f786c032271de8d9edd8bba050516e">aec6fa916</a><a href="https://github.com/micropython/micropython/commit/aec6fa9160f786c032271de8d9edd8bba050516e">&lt;a href=&quot;https://github.com/micropython/micropython/commit/aec6fa9160f786c032271de8d9edd8bba050516e&quot;&gt;&amp;quot;&amp;gt;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 &amp;lt;/a&gt;&lt;a class=&quot;double-link&quot; href=&quot;https://github.com/micropython/micropython/commit/</a><a class="double-link" href="https://github.com/micropython/micropython/commit/<a class="double-link" href="https://github.com/micropython/micropython/commit/baf6f14deb567ab626c1b05213af346108f41700">baf6f14de</a>">baf6f14de</a>">baf6f14de</a><a href="https://github.com/micropython/micropython/commit/aec6fa9160f786c032271de8d9edd8bba050516e">. By fixing it to use %s (instead of keeping the string as-is and deleting the last arg) the same error message string is n</a>ow 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([]).
17967 of 18323 relevant lines covered (98.06%)
334628.51 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|