File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 5
5
6
6
print ("Проверка версий" )
7
7
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 :
9
9
current_version = version_file .read ()
10
10
11
11
if current_version != last_version :
12
12
print ("Обновление" )
13
- with open ("MOTVOY_III.py" , "w" ) as file :
13
+ with open ("MOTVOY_III.py" , "w" , encoding = "utf-8" ) as file :
14
14
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 :
16
16
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 :
18
18
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 :
20
20
file .write (last_version )
21
21
print ("Обновление завершено" )
22
22
Original file line number Diff line number Diff line change 1
- 1.0.0
1
+ 1.0.0
You can’t perform that action at this time.
0 commit comments