[issue23711] ConfigParser module blames on section less ini file

Maxim Kot report at bugs.python.org
Thu Mar 19 16:40:37 CET 2015


New submission from Maxim Kot:

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?

----------
components: Library (Lib)
messages: 238537
nosy: Maxim Kot, lukasz.langa
priority: normal
severity: normal
status: open
title: ConfigParser module blames on section less ini file
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23711>
_______________________________________


More information about the Python-bugs-list mailing list