Whole file

uiri/toml

The author described this change as Fix loading values when a line has " }" after a boolean. It counts as a record because the check below fails on the code as it stood at f83c9cdc8 and passes on 1f14df1fa, with nothing else changed between the two runs.

Projectuiri/toml
Fix saved2019-01-04
Sharing licenceMIT · LICENSE
Change size+2 1

What the code was meant to do, written into the code itself as a save note

Fix loading values when a line has " }" after a boolean

The change

669669 while len(pair[-1]) and (pair[-1][0] != ' ' and pair[-1][0] != '\t' and
670670 pair[-1][0] != "'" and pair[-1][0] != '"' and
671671 pair[-1][0] != '[' and pair[-1][0] != '{' and
672- pair[-1] != 'true' and pair[-1] != 'false'):
672+ pair[-1].strip() != 'true' and
673+ pair[-1].strip() != 'false'):
673674 try:
674675 float(pair[-1])
675676 break

The check that tells the two apart

failpass·tests/test_api.py::test_bug_black637

Check file tests/test_api.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before itf83c9cdc8f420cb784ea6af8ad524c7bf86d4f18
Broken version dated2019-01-03
Moduletoml.decoder
Units changedTomlDecoder
Fingerprintfaa18b20dca211ef
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.

Other bugs found in uiri/toml