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

Fred L. Drake fdrake@weyr.cnri.reston.va.us
Mon, 28 Feb 2000 18:23:59 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Lib
In directory weyr:/home/fdrake/projects/python/Lib

Modified Files:
	ConfigParser.py 
Log Message:

Fix comments relating to the specific regexs used to parse section and 
option names; errors noted by Greg Stein <gstein@lyra.org>.


Index: ConfigParser.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/ConfigParser.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** ConfigParser.py	2000/02/28 20:59:03	1.15
--- ConfigParser.py	2000/02/28 23:23:55	1.16
***************
*** 293,301 ****
      SECTCRE = re.compile(
          r'\['                                 # [
!         r'(?P<header>[-\w_.*,(){}]+)'         # `-', `_' or any alphanum
          r'\]'                                 # ]
          )
      OPTCRE = re.compile(
!         r'(?P<option>[-\w_.*,(){}]+)'         # - . _ alphanum
          r'[ \t]*(?P<vi>[:=])[ \t]*'           # any number of space/tab,
                                                # followed by separator
--- 293,301 ----
      SECTCRE = re.compile(
          r'\['                                 # [
!         r'(?P<header>[-\w_.*,(){}]+)'         # a lot of stuff found by IvL
          r'\]'                                 # ]
          )
      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