Explorar o código

Add option "b" in open because binary content

Unknown %!s(int64=8) %!d(string=hai) anos
pai
achega
a474965acc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tts/voxygen/voxygen.py

+ 1 - 1
tts/voxygen/voxygen.py

@@ -125,7 +125,7 @@ def remove_file(file_path):
 
 
 def write_in_file(file_path, content):
-    with open(file_path, "w") as file_open:
+    with open(file_path, "wb") as file_open:
         file_open.write(content)
         file_open.close()