Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions toml/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1024,10 +1024,7 @@ def load_array(self, a):
a[i] = a[i].strip()
if a[i] != '':
nval, ntype = self.load_value(a[i])
if atype:
if ntype != atype:
raise ValueError("Not a homogeneous array")
else:
if not atype:
atype = ntype
retval.append(nval)
return retval
Expand Down