Skip to content

Commit 4a2a8ff

Browse files
Revert change to vendored code
1 parent 09690f0 commit 4a2a8ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

isort/_vendored/toml/encoder.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
unicode = str
1010

1111

12-
def dump(o, f, encoder=None):
12+
dump(o, f, encoder=None):
1313
"""Writes out dict as toml to a file
1414
1515
Args:
@@ -241,8 +241,10 @@ def __init__(self, _dict=dict, preserve=False, separator=","):
241241
self.separator = separator
242242

243243
def dump_list(self, v):
244+
t = []
244245
retval = "["
245-
t = [self.dump_value(u) for u in v]
246+
for u in v:
247+
t.append(self.dump_value(u))
246248
while t != []:
247249
s = []
248250
for u in t:

0 commit comments

Comments
 (0)