summaryrefslogtreecommitdiff
path: root/Lib/ConfigParser.py
diff options
context:
space:
mode:
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, ';')