summaryrefslogtreecommitdiffstats
path: root/Lib/ConfigParser.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-02-28 23:23:55 (GMT)
committerFred Drake <fdrake@acm.org>2000-02-28 23:23:55 (GMT)
commit1ab41fc680f93dd11e7cdd78a143e72b11ab2a64 (patch)
treeb71b6ab278ecbd34bb8a2a5615e43d06e503b2b1 /Lib/ConfigParser.py
parent619c33787b935eafa847ace6f2cdc7f696937e88 (diff)
downloadcpython-1ab41fc680f93dd11e7cdd78a143e72b11ab2a64.zip
cpython-1ab41fc680f93dd11e7cdd78a143e72b11ab2a64.tar.gz
cpython-1ab41fc680f93dd11e7cdd78a143e72b11ab2a64.tar.bz2
Fix comments relating to the specific regexs used to parse section and
option names; errors noted by Greg Stein <gstein@lyra.org>.
Diffstat (limited to 'Lib/ConfigParser.py')
-rw-r--r--Lib/ConfigParser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py
index e871cc5..aac9b69 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<header>[-\w_.*,(){}]+)' # `-', `_' or any alphanum
+ r'(?P<header>[-\w_.*,(){}]+)' # a lot of stuff found by IvL
r'\]' # ]
)
OPTCRE = re.compile(
- r'(?P<option>[-\w_.*,(){}]+)' # - . _ alphanum
+ r'(?P<option>[-\w_.*,(){}]+)' # a lot of stuff found by IvL
r'[ \t]*(?P<vi>[:=])[ \t]*' # any number of space/tab,
# followed by separator
# (either : or =), followed