Skip to content

Commit f9d9709

Browse files
committed
Update updater.py
1 parent 55a8b76 commit f9d9709

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

updater.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55

66
print("Проверка версий")
77
last_version = requests.get(f"{repo}/version.txt").text
8-
with open("version.txt", "r") as version_file:
8+
with open("version.txt", "r", encoding="utf-8") as version_file:
99
current_version = version_file.read()
1010

1111
if current_version != last_version:
1212
print("Обновление")
13-
with open("MOTVOY_III.py", "w") as file:
13+
with open("MOTVOY_III.py", "w", encoding="utf-8") as file:
1414
file.write(requests.get(f"{repo}/MOTVOY_III.py").text)
15-
with open("generate_voice.py", "w") as file:
15+
with open("generate_voice.py", "w", encoding="utf-8") as file:
1616
file.write(requests.get(f"{repo}/generate_voice.py").text)
17-
with open("main.py", "w") as file:
17+
with open("main.py", "w", encoding="utf-8") as file:
1818
file.write(requests.get(f"{repo}/main.py").text)
19-
with open("version.txt", "w"):
19+
with open("version.txt", "w", encoding="utf-8") as file:
2020
file.write(last_version)
2121
print("Обновление завершено")
2222

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
1.0.0

0 commit comments

Comments
 (0)