Commit d4df94b5 authored by Fred Drake's avatar Fred Drake

Be much more permissive in what we accept in section names; there has been

at least one addition to the set of accepted characters for every release
since this module was first added; this should take care of the problem
in a more substantial way.

This closes SF bug #132288.
parent d807570e
......@@ -387,7 +387,7 @@ class ConfigParser:
# of \w, _ is allowed in section header names.
SECTCRE = re.compile(
r'\[' # [
r'(?P<header>[-\w_.*,(){} ]+)' # a lot of stuff found by IvL
r'(?P<header>[^]]+)' # very permissive!
r'\]' # ]
)
OPTCRE = re.compile(
......
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