[issue45217] ConfigParser does not accept "No value" reversely to the doc
Nikita Sobolev
report at bugs.python.org
Thu Sep 16 15:28:12 EDT 2021
Nikita Sobolev <mail at sobolevn.me> added the comment:
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.
----------
nosy: +sobolevn
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45217>
_______________________________________
More information about the Python-bugs-list
mailing list