소스 검색

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()