[Python-checkins] bpo-45217: adds note that `allow_no_value` in `configparser` is optional (GH-28396) (GH-28418)

ambv webhook-mailer at python.org
Fri Sep 17 09:10:36 EDT 2021


https://github.com/python/cpython/commit/a10726d3141d8f52a108c4daf70eefa29401e2fc
commit: a10726d3141d8f52a108c4daf70eefa29401e2fc
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2021-09-17T15:10:28+02:00
summary:

bpo-45217: adds note that `allow_no_value` in `configparser` is optional (GH-28396) (GH-28418)

Co-authored-by: Łukasz Langa <lukasz at langa.pl>
(cherry picked from commit cb07838ab756564988b1ffd23871f1222a832446)

Co-authored-by: Nikita Sobolev <mail at sobolevn.me>

files:
M Doc/library/configparser.rst

diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst
index 2bb425930bba7..1ebda53ecda0f 100644
--- a/Doc/library/configparser.rst
+++ b/Doc/library/configparser.rst
@@ -261,7 +261,8 @@ A configuration file consists of sections, each led by a ``[section]`` header,
 followed by key/value entries separated by a specific string (``=`` or ``:`` by
 default [1]_).  By default, section names are case sensitive but keys are not
 [1]_.  Leading and trailing whitespace is removed from keys and values.
-Values can be omitted, in which case the key/value delimiter may also be left
+Values can be omitted if the parser is configured to allow it [1]_,
+in which case the key/value delimiter may also be left
 out.  Values can also span multiple lines, as long as they are indented deeper
 than the first line of the value.  Depending on the parser's mode, blank lines
 may be treated as parts of multiline values or ignored.



More information about the Python-checkins mailing list