mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
bpo-38741: Definition of multiple ']' in header configparser (GH-17129) (#27110)
Co-authored-by: Jason Killen <jason.killen@windsorcircle.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 2924bb1a56
)
Co-authored-by: jsnklln <jsnklln@gmail.com>
This commit is contained in:
parent
f514addfbc
commit
1cc6769e41
3 changed files with 9 additions and 1 deletions
|
@ -563,7 +563,7 @@ class RawConfigParser(MutableMapping):
|
|||
# Regular expressions for parsing section headers and options
|
||||
_SECT_TMPL = r"""
|
||||
\[ # [
|
||||
(?P<header>[^]]+) # very permissive!
|
||||
(?P<header>.+) # very permissive!
|
||||
\] # ]
|
||||
"""
|
||||
_OPT_TMPL = r"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue