Issue 23711: ConfigParser module blames on section less ini file (original) (raw)

Issue23711

Created on 2015-03-19 15:40 by Maxim Kot, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg238537 - (view) Author: Maxim Kot (Maxim Kot) Date: 2015-03-19 15:40
Wikipedia (http://en.wikipedia.org/wiki/INI_file#Sections) says: >Keys may (but need not) be grouped into arbitrarily named sections But when it's trying to parse file without section header - "MissingSectionHeaderError: File contains no section headers" raised. Can such check be made optional and switched on for default for example?
msg238587 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2015-03-19 23:57
I think this is already discussed in Issue 22253.
History
Date User Action Args
2022-04-11 14:58:14 admin set github: 67899
2015-03-19 23:57:20 martin.panter set status: open -> closednosy: + martin.pantermessages: + superseder: ConfigParser does not handle files without sectionsresolution: duplicate
2015-03-19 15:40:37 Maxim Kot create