Merge pull request #241 from JonasTriki/fix-compressed-file-write
Add minor fix to OutputSplitter.write()
This commit is contained in:
commit
881f3e4252
@ -169,7 +169,10 @@ class OutputSplitter():
|
|||||||
|
|
||||||
def write(self, data):
|
def write(self, data):
|
||||||
self.reserve(len(data))
|
self.reserve(len(data))
|
||||||
self.file.write(data)
|
if self.compress:
|
||||||
|
self.file.write(data.encode('utf-8'))
|
||||||
|
else:
|
||||||
|
self.file.write(data)
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
self.file.close()
|
self.file.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user