diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index 14412a38bae..94179dacc62 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
[-\w_.*,(){} ]+)' # a lot of stuff found by IvL + r'(?P
[^]]+)' # very permissive! r'\]' # ] ) OPTCRE = re.compile(