One function

simple_separated_format in astanin/python-tabulate

The author described this change as fix #15: TypeError when using simple_separated_format with headers. It counts as a record because the check below fails on the code as it stood at 7d6dfc112 and passes on 41a6db29b, with nothing else changed between the two runs.

Fix saved2013-11-20
Sharing licenceMIT · LICENSE
Change size+2 1

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

Construct a simple TableFormat with columns separated by a separator.

The change

77
88 """
99 return TableFormat(None, None, None, None,
10- headerrow=None, datarow=DataRow('', separator, ''),
10+ headerrow=DataRow('', separator, ''),
11+ datarow=DataRow('', separator, ''),
1112 padding=0, with_header_hide=None)

The check that tells the two apart

failpass·test/test_regression.py::test_simple_separated_format_with_headers

Check file test/test_regression.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 it7d6dfc1126e4da7d7a7547f1e1626fe676a5462f
Broken version dated2013-11-20
Moduletabulate
Units changedsimple_separated_format
Fingerprint1a0c5143c1b01a99
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 astanin/python-tabulate