Commit 288c6dc2 authored by Xavier Thompson's avatar Xavier Thompson

slapformat: WIP: Use defaultdict for definition sections

parent 61ce13ae
......@@ -223,7 +223,7 @@ class Definition(defaultdict):
configp = configparser.ConfigParser(interpolation=None)
configp.read(definition_file)
for s in configp.sections():
self[s] = dict(configp.items(s))
self[s] = defaultdict(type(None), configp.items(s))
class Computer(object):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment