Use RawConfigParser so we can load python style template syntax from configs

This commit is contained in:
Stefan Hacker
2013-02-24 08:30:49 +01:00
parent 4a42e01f36
commit 74674509cd
2 changed files with 5 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ class Config(object):
sections = set(default.iterkeys())
if filename:
cfg = ConfigParser.ConfigParser()
cfg = ConfigParser.RawConfigParser()
cfg.optionxform = str
cfg.read(filename)
sections.update(cfg.sections())