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

Jeremy Hylton jhylton@cnri.reston.va.us
Fri, 3 Mar 2000 15:44:00 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Lib
In directory bitdiddle:/home/jhylton/python/src/Lib

Modified Files:
	ConfigParser.py 
Log Message:
allow comments beginning with ; in key: value as well as key = value


Index: ConfigParser.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/ConfigParser.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** ConfigParser.py	2000/02/28 23:23:55	1.16
--- ConfigParser.py	2000/03/03 20:43:57	1.17
***************
*** 359,363 ****
                          optname, vi, optval = mo.group('option', 'vi', 'value')
                          optname = string.lower(optname)
!                         if vi == '=' and ';' in optval:
                              # ';' is a comment delimiter only if it follows
                              # a spacing character
--- 359,363 ----
                          optname, vi, optval = mo.group('option', 'vi', 'value')
                          optname = string.lower(optname)
!                         if vi in ('=', ':') and ';' in optval:
                              # ';' is a comment delimiter only if it follows
                              # a spacing character