summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-02-14 15:24:17 (GMT)
committerFred Drake <fdrake@acm.org>2001-02-14 15:24:17 (GMT)
commitd4df94b56d762c8d68e186c256a6d4b741044046 (patch)
tree307e68bd26da4524145e8ab13c9570cbff42a4be /Lib
parentd807570ed16014b31b2b91d2dc6a65437afbeb46 (diff)
downloadcpython-d4df94b56d762c8d68e186c256a6d4b741044046.zip
cpython-d4df94b56d762c8d68e186c256a6d4b741044046.tar.gz
cpython-d4df94b56d762c8d68e186c256a6d4b741044046.tar.bz2
Be much more permissive in what we accept in section names; there has been
at least one addition to the set of accepted characters for every release since this module was first added; this should take care of the problem in a more substantial way. This closes SF bug #132288.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ConfigParser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py
index 14412a3..94179da 100644
--- a/Lib/ConfigParser.py
+++ b/Lib/ConfigParser.py
@@ -387,7 +387,7 @@ class ConfigParser:
# of \w, _ is allowed in section header names.
SECTCRE = re.compile(
r'\[' # [
- r'(?P<header>[-\w_.*,(){} ]+)' # a lot of stuff found by IvL
+ r'(?P<header>[^]]+)' # very permissive!
r'\]' # ]
)
OPTCRE = re.compile(