Skip to content

Commit

Permalink
Close #42 and simplify. Manual testing shows this works.
Browse files Browse the repository at this point in the history
  • Loading branch information
uiri committed Apr 4, 2016
1 parent a35f7bc commit ca3d32e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ca3d32e

Please sign in to comment.