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