Skip to content

Commit

Permalink
don't call encode() before writing to a file
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Aug 12, 2018
1 parent 1e2a154 commit e076c36
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions qtwirl/_builder/func.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ def to_dataframe_store_file(reader, columns, path):
dir_ = os.path.dirname(path)
alphatwirl.misc.mkdir_p(dir_)
with open(path, 'w') as f:
content = alphatwirl.misc.list_to_aligned_text(
tuple_list_with_header).encode()
content = alphatwirl.misc.list_to_aligned_text(tuple_list_with_header)
f.write(content)

return pd.DataFrame(tuple_list, columns=columns)
Expand Down

0 comments on commit e076c36

Please sign in to comment.