diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index e871cc54787..aac9b691923 100644 --- a/Lib/ConfigParser.py +++ b/Lib/ConfigParser.py @@ -292,11 +292,11 @@ class ConfigParser: # of \w, _ is allowed in section header names. SECTCRE = re.compile( r'\[' # [ - r'(?P
[-\w_.*,(){}]+)' # `-', `_' or any alphanum + r'(?P
[-\w_.*,(){}]+)' # a lot of stuff found by IvL r'\]' # ] ) OPTCRE = re.compile( - r'(?P