Commit d83bbbfd authored by Fred Drake's avatar Fred Drake

Allow square brackets in the option names; this makes it possible to use

ConfigParser with GNOME-ish config files that use the internationalization
conventions found in GNOME.

This closes SF bug #131635.
parent c17b3cfe
......@@ -391,7 +391,7 @@ class ConfigParser:
r'\]' # ]
)
OPTCRE = re.compile(
r'(?P<option>[-\w_.*,(){}]+)' # a lot of stuff found by IvL
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