Commit 1ab41fc6 authored by Fred Drake's avatar Fred Drake

Fix comments relating to the specific regexs used to parse section and

option names; errors noted by Greg Stein <gstein@lyra.org>.
parent 619c3378
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment