summaryrefslogtreecommitdiffstats
path: root/Lib/configparser.py
diff options
context:
space:
mode:
authorjsnklln <jsnklln@gmail.com>2021-07-13 13:54:06 (GMT)
committerGitHub <noreply@github.com>2021-07-13 13:54:06 (GMT)
commit2924bb1a566977efd45f335d6a94cd84d8047edf (patch)
tree872c80a03960e31e8629a5ea2861dcb92158e506 /Lib/configparser.py
parentd4a5f0b659a2b8f206cfbdfd37fc36aedf77a71f (diff)
downloadcpython-2924bb1a566977efd45f335d6a94cd84d8047edf.zip
cpython-2924bb1a566977efd45f335d6a94cd84d8047edf.tar.gz
cpython-2924bb1a566977efd45f335d6a94cd84d8047edf.tar.bz2
bpo-38741: Definition of multiple ']' in header configparser (GH-17129)
Co-authored-by: Jason Killen <jason.killen@windsorcircle.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Diffstat (limited to 'Lib/configparser.py')
-rw-r--r--Lib/configparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/configparser.py b/Lib/configparser.py
index 2f45e24..042a5c7 100644
--- a/Lib/configparser.py
+++ b/Lib/configparser.py
@@ -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"""