[Python-checkins] CVS: python/dist/src/Lib ConfigParser.py,1.30,1.31

Fred L. Drake fdrake@users.sourceforge.net
Wed, 14 Feb 2001 07:24:20 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv17533

Modified Files:
	ConfigParser.py 
Log Message:

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.


Index: ConfigParser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/ConfigParser.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -r1.30 -r1.31
*** ConfigParser.py	2001/02/12 17:18:11	1.30
--- ConfigParser.py	2001/02/14 15:24:17	1.31
***************
*** 388,392 ****
      SECTCRE = re.compile(
          r'\['                                 # [
!         r'(?P<header>[-\w_.*,(){} ]+)'        # a lot of stuff found by IvL
          r'\]'                                 # ]
          )
--- 388,392 ----
      SECTCRE = re.compile(
          r'\['                                 # [
!         r'(?P<header>[^]]+)'                  # very permissive!
          r'\]'                                 # ]
          )