classification
Title: ConfigParser module blames on section less ini file
Type: behavior Stage:
Components: Library (Lib) Versions: Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: ConfigParser does not handle files without sections
View: 22253
Assigned To: Nosy List: Maxim Kot, lukasz.langa, martin.panter
Priority: normal Keywords:

Created on 2015-03-19 15:40 by Maxim Kot, last changed 2015-03-19 23:57 by martin.panter. 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
2015-03-19 23:57:20martin.pantersetstatus: open -> closed

nosy: + martin.panter
messages: + msg238587

superseder: ConfigParser does not handle files without sections
resolution: duplicate
2015-03-19 15:40:37Maxim Kotcreate