summaryrefslogtreecommitdiffstats
path: root/Lib/configparser.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-07-13 14:35:30 (GMT)
committerGitHub <noreply@github.com>2021-07-13 14:35:30 (GMT)
commit1cc6769e4146951d47528a97e56ba1e8e9ee7fc1 (patch)
tree89bd377749be6a106d76dae5d3ed27b95e55a1fd /Lib/configparser.py
parentf514addfbc637a42549ddc422b35b6caad2a4363 (diff)
downloadcpython-1cc6769e4146951d47528a97e56ba1e8e9ee7fc1.zip
cpython-1cc6769e4146951d47528a97e56ba1e8e9ee7fc1.tar.gz
cpython-1cc6769e4146951d47528a97e56ba1e8e9ee7fc1.tar.bz2
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 2924bb1a566977efd45f335d6a94cd84d8047edf) Co-authored-by: jsnklln <jsnklln@gmail.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"""