From e076c36bdc81bae21914aa66e24f5a6f96444b9d Mon Sep 17 00:00:00 2001 From: Tai Sakuma Date: Sun, 12 Aug 2018 17:18:07 +0100 Subject: [PATCH] don't call encode() before writing to a file --- qtwirl/_builder/func.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qtwirl/_builder/func.py b/qtwirl/_builder/func.py index d64b6c3..8054d76 100644 --- a/qtwirl/_builder/func.py +++ b/qtwirl/_builder/func.py @@ -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)