bugfix with recursive func
This commit is contained in:
parent
d7e010e815
commit
cd08025ee2
1 changed files with 3 additions and 1 deletions
|
|
@ -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))}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue