This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sobolevn
Recipients docs@python, sbougnoux, sobolevn
Date 2021-09-16.19:28:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631820492.11.0.0106628173038.issue45217@roundup.psfhosted.org>
In-reply-to
Content
Try this:

```
from configparser import ConfigParser
ConfigParser(allow_no_value=True).read('bug.ini')
```

It should work! :)

But, the docs are missing this config value here (which caused this issue):

> Values can be omitted, in which case the key/value delimiter may also be left out.

https://github.com/python/cpython/blame/f4b94b1f57827083990272b5f282aa1493ae2bf4/Doc/library/configparser.rst#L264

I will update the docs.
History
Date User Action Args
2021-09-16 19:28:12sobolevnsetrecipients: + sobolevn, docs@python, sbougnoux
2021-09-16 19:28:12sobolevnsetmessageid: <1631820492.11.0.0106628173038.issue45217@roundup.psfhosted.org>
2021-09-16 19:28:12sobolevnlinkissue45217 messages
2021-09-16 19:28:12sobolevncreate