mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
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.
This commit is contained in:
parent
c17b3cfec1
commit
d83bbbfd22
1 changed files with 1 additions and 1 deletions
|
|
@ -391,7 +391,7 @@ def remove_section(self, section):
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue