From 820314ea954963937ee51190ea916b1f54361d0f Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Fri, 3 Mar 2000 20:43:57 +0000 Subject: [PATCH] allow comments beginning with ; in key: value as well as key = value --- Lib/ConfigParser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index aac9b69192..e1ce9ddc7e 100644 --- a/Lib/ConfigParser.py +++ b/Lib/ConfigParser.py @@ -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, ';') -- 2.40.0