summaryrefslogtreecommitdiff
path: root/Lib/ConfigParser.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-03-03 20:43:57 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2000-03-03 20:43:57 +0000
commit820314ea954963937ee51190ea916b1f54361d0f (patch)
tree3a98537922cd106307bcced6735a2686993444db /Lib/ConfigParser.py
parent1b7a70fa52a56d016b8b2f3699a407bb356a9c59 (diff)
downloadcpython-git-820314ea954963937ee51190ea916b1f54361d0f.tar.gz
allow comments beginning with ; in key: value as well as key = value
Diffstat (limited to 'Lib/ConfigParser.py')
-rw-r--r--Lib/ConfigParser.py2
1 files changed, 1 insertions, 1 deletions
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, ';')