bugfix with recursive func

This commit is contained in:
Christophe Benz 2010-08-02 16:44:41 +02:00
commit cd08025ee2

View file

@ -38,8 +38,10 @@ class INIConfig(IConfig):
def load_section(section): def load_section(section):
sections = section.split(':') sections = section.split(':')
if len(sections) > 1: if len(sections) > 1:
result = {}
for s in sections: for s in sections:
values = load_section(s) result[s] = load_section(s)
return result
else: else:
return {section: dict(self.config.items(section))} return {section: dict(self.config.items(section))}