From f2b9c42da423c766821e35c593a81940f2e03409 Mon Sep 17 00:00:00 2001 From: vidhya <96202776+Vidhyavinu@users.noreply.github.com> Date: Fri, 18 Feb 2022 14:24:44 -0500 Subject: [PATCH 1/4] [doc] Explain ConfigParser 'valid section name' and .SECTCRE Added "By default, a legal section name can be any string that does not contain '\\n' or ']'. To change this, see :attr:`ConfigParser.SECTCRE`." in configparser.rst. --- Doc/library/configparser.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst index 1ebda53ecda0fb..0d27e4184a63c5 100644 --- a/Doc/library/configparser.rst +++ b/Doc/library/configparser.rst @@ -267,6 +267,9 @@ 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. +By default, a legal section name can be any string that does not contain '\\n' or ']'. +To change this, see :attr:`ConfigParser.SECTCRE`. + Configuration files may include comments, prefixed by specific characters (``#`` and ``;`` by default [1]_). Comments may appear on their own on an otherwise empty line, possibly indented. [1]_ From 923886575296600d06e33ab5cf6620d03566b72a Mon Sep 17 00:00:00 2001 From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Tue, 22 Feb 2022 11:20:53 +0000 Subject: [PATCH 2/4] legal --> valid --- Doc/library/configparser.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst index 0d27e4184a63c5..a2a22f03f9a173 100644 --- a/Doc/library/configparser.rst +++ b/Doc/library/configparser.rst @@ -267,7 +267,7 @@ 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. -By default, a legal section name can be any string that does not contain '\\n' or ']'. +By default, a valid section name can be any string that does not contain '\\n' or ']'. To change this, see :attr:`ConfigParser.SECTCRE`. Configuration files may include comments, prefixed by specific From 68359be6ab7a48345831984acacb2bb7b97b589b Mon Sep 17 00:00:00 2001 From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Tue, 22 Feb 2022 11:26:55 +0000 Subject: [PATCH 3/4] remove trailing whitespace --- Doc/library/configparser.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst index a2a22f03f9a173..4fb75a7a101b56 100644 --- a/Doc/library/configparser.rst +++ b/Doc/library/configparser.rst @@ -267,7 +267,7 @@ 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. -By default, a valid section name can be any string that does not contain '\\n' or ']'. +By default, a valid section name can be any string that does not contain '\\n' or ']'. To change this, see :attr:`ConfigParser.SECTCRE`. Configuration files may include comments, prefixed by specific From c4aa3fcb87f6838b2abd4b91892bcf9d5ddc9058 Mon Sep 17 00:00:00 2001 From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Tue, 22 Feb 2022 17:41:47 +0000 Subject: [PATCH 4/4] remove trailing whitespace. --- Doc/library/configparser.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst index 4fb75a7a101b56..323dd2affc78fc 100644 --- a/Doc/library/configparser.rst +++ b/Doc/library/configparser.rst @@ -267,7 +267,7 @@ 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. -By default, a valid section name can be any string that does not contain '\\n' or ']'. +By default, a valid section name can be any string that does not contain '\\n' or ']'. To change this, see :attr:`ConfigParser.SECTCRE`. Configuration files may include comments, prefixed by specific