瀏覽代碼

Add option "b" in open because binary content

Unknown 8 年之前
父節點
當前提交
a474965acc
共有 1 個文件被更改,包括 1 次插入1 次删除
  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()