diff Lib/ConfigParser.py @ 11908:b975a056deb6 legacy-trunk

allow comments beginning with ; in key: value as well as key = value
author Jeremy Hylton <jeremy@alum.mit.edu>
date Fri, 03 Mar 2000 20:43:57 +0000
parents 286303f00546
children 34d2b50eff2e
line wrap: on
line diff
--- a/Lib/ConfigParser.py	Fri Mar 03 17:06:13 2000 +0000
+++ b/Lib/ConfigParser.py	Fri Mar 03 20:43:57 2000 +0000
@@ -358,7 +358,7 @@
                     if mo:
                         optname, vi, optval = mo.group('option', 'vi', 'value')
                         optname = string.lower(optname)
-                        if vi == '=' and ';' in optval:
+                        if vi in ('=', ':') and ';' in optval:
                             # ';' is a comment delimiter only if it follows
                             # a spacing character
                             pos = string.find(optval, ';')