Skip to content

Commit

Permalink
Added utf-8 encoding to write the python file for windows compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
fjganan14 committed Mar 9, 2024
1 parent 9e08c39 commit e2bf4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LLMCode/utils/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,5 @@ def add_msg(msg, where, element, script_content):
script_content,
)
pass
with open(script, "w") as python_file:
with open(script, "w", encoding="utf-8") as python_file:
python_file.write(script_content)

0 comments on commit e2bf4ef

Please sign in to comment.