Turns out ConfigParser does indeed ignore the lines that are not section headers or key/value options.[1]
A possible solution would be to add some logic into our custom _read method to preserve these other lines.
[1] https://github.com/python/cpython/blob/2.7/Lib/ConfigParser.py#L471-L472
Turns out ConfigParser does indeed ignore the lines that are not section headers or key/value options.[1]
A possible solution would be to add some logic into our custom _read method to preserve these other lines.
[1] https:/ /github. com/python/ cpython/ blob/2. 7/Lib/ConfigPar ser.py# L471-L472