From: Fred Drake Date: Mon, 28 Feb 2000 23:23:55 +0000 (+0000) Subject: Fix comments relating to the specific regexs used to parse section and X-Git-Tag: v1.6a1~331 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ab41fc680f93dd11e7cdd78a143e72b11ab2a64;p=python Fix comments relating to the specific regexs used to parse section and option names; errors noted by Greg Stein . --- diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index e871cc5478..aac9b69192 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