[Python-checkins] CVS: python/dist/src/Lib ConfigParser.py,1.29,1.30
Fred L. Drake
fdrake@users.sourceforge.net
Mon, 12 Feb 2001 09:18:13 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv24225
Modified Files:
ConfigParser.py
Log Message:
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.
Index: ConfigParser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/ConfigParser.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -r1.29 -r1.30
*** ConfigParser.py 2001/02/09 05:37:25 1.29
--- ConfigParser.py 2001/02/12 17:18:11 1.30
***************
*** 392,396 ****
)
OPTCRE = re.compile(
! r'(?P<option>[-\w_.*,(){}]+)' # a lot of stuff found by IvL
r'[ \t]*(?P<vi>[:=])[ \t]*' # any number of space/tab,
# followed by separator
--- 392,396 ----
)
OPTCRE = re.compile(
! r'(?P<option>[]\-[\w_.*,(){}]+)' # a lot of stuff found by IvL
r'[ \t]*(?P<vi>[:=])[ \t]*' # any number of space/tab,
# followed by separator