Made configure handle comments and empty lines.

This commit is contained in:
Jeremy Fincher 2003-11-22 06:57:03 +00:00
parent 27ce1d3cc7
commit 6ae0a0b8c4

View File

@ -68,6 +68,9 @@ def configure(onStart, afterConnect, advanced):
counter = 1
try:
for line in fd:
line = line.rstrip('\r\n')
if not line or line.startswith('#'):
continue
(key, value) = line.split(':', 1)
counter += 1
except ValueError: