| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
naturalsize()'s unit rollover check ran the user-supplied format string through float(), which raises ValueError whenever that format contains text around the numeric conversion (e.g. "Size: %.1f"), a regression from 4.15.0. Compare the rendered mantissa against the rendered base instead, so the carry-over still works and arbitrary formats are accepted again. Closes python-humanize#366
| Back | FazBrowse Home | New Git URL |
Fixes #366
Changes proposed in this pull request:
This change was prepared with AI assistance; the regression test was run locally and fails without the fix.