Close #42 and simplify. Manual testing shows this works.
This commit is contained in:
7
toml.py
7
toml.py
@@ -34,11 +34,8 @@ def load(f, _dict=dict):
|
||||
raise Exception("Load expects a list to contain filenames only")
|
||||
d = _dict()
|
||||
for l in f:
|
||||
d.append(load(l))
|
||||
r = _dict()
|
||||
for l in d:
|
||||
toml_merge_dict(r, l)
|
||||
return r
|
||||
d.update(load(l))
|
||||
return d
|
||||
elif f.read:
|
||||
return loads(f.read(), _dict)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user