Commit 2512d5ff authored by Jeremy Hylton's avatar Jeremy Hylton

allow comments beginning with ; in key: value as well as key = value

parent 9cac8dbb
......@@ -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, ';')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment