From: Fred Drake Date: Mon, 12 Feb 2001 17:18:11 +0000 (+0000) Subject: Allow square brackets in the option names; this makes it possible to use X-Git-Tag: v2.1b1~392 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d83bbbfd222d7e399fd8b2b17492c1448dc4f2a2;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index 9d55ca76283a..14412a38baec 100644 --- a/Lib/ConfigParser.py +++ b/Lib/ConfigParser.py @@ -391,7 +391,7 @@ class ConfigParser: r'\]' # ] ) OPTCRE = re.compile( - r'(?P