]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45217: adds note that `allow_no_value` in `configparser` is optional (GH-28396)
authorNikita Sobolev <mail@sobolevn.me>
Fri, 17 Sep 2021 10:55:51 +0000 (13:55 +0300)
committerGitHub <noreply@github.com>
Fri, 17 Sep 2021 10:55:51 +0000 (12:55 +0200)
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Doc/library/configparser.rst

index 1ec0fa1586afe23b5b4957acbc714795b52f64d8..d31452edb974f2d0fc595bd915bac1ad7823b44d 100644 (file)
@@ -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.