Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 471aa75

Browse files
authored
Update ConfigParser docs defining valid section name (#110506)
1 parent f48a1bc commit 471aa75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/configparser.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ out. Values can also span multiple lines, as long as they are indented deeper
271271
than the first line of the value. Depending on the parser's mode, blank lines
272272
may be treated as parts of multiline values or ignored.
273273

274-
By default, a valid section name can be any string that does not contain '\\n' or ']'.
274+
By default, a valid section name can be any string that does not contain '\\n'.
275275
To change this, see :attr:`ConfigParser.SECTCRE`.
276276

277277
Configuration files may include comments, prefixed by specific

0 commit comments

Comments
 (0)