diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2021-09-17 10:55:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 10:55:51 (GMT) |
commit | cb07838ab756564988b1ffd23871f1222a832446 (patch) | |
tree | f42c9cbe64a782c8cd4a1d9605b039bfbe19c3cd /Doc/library/configparser.rst | |
parent | 70bed6f9936c811472b376edd93c37bcf8f06f35 (diff) | |
download | cpython-cb07838ab756564988b1ffd23871f1222a832446.zip cpython-cb07838ab756564988b1ffd23871f1222a832446.tar.gz cpython-cb07838ab756564988b1ffd23871f1222a832446.tar.bz2 |
bpo-45217: adds note that `allow_no_value` in `configparser` is optional (GH-28396)
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Doc/library/configparser.rst')
-rw-r--r-- | Doc/library/configparser.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst index 1ec0fa1..d31452e 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. |