]> granicus.if.org Git - python/commitdiff
allow comments beginning with ; in key: value as well as key = value
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 3 Mar 2000 20:43:57 +0000 (20:43 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 3 Mar 2000 20:43:57 +0000 (20:43 +0000)
Lib/ConfigParser.py

index aac9b691923a37b752f8cd43218d5787d8b917d6..e1ce9ddc7e9aa602f26da9f1cb88d379ea09f4e7 100644 (file)
@@ -358,7 +358,7 @@ class ConfigParser:
                     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, ';')