mirror of
https://github.com/glomatico/gamdl.git
synced 2026-06-13 04:05:14 +03:00
Open file with UTF-8 encoding in add_file
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ class CustomOutputWriter:
|
||||
self.streams = streams
|
||||
|
||||
def add_file(self, path: str):
|
||||
file_stream = open(path, "a")
|
||||
file_stream = open(path, "a", encoding="utf-8")
|
||||
atexit.register(file_stream.close)
|
||||
self.streams.append(file_stream)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user