mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Make "set_version.py" working with Python 2.7 as well.
This commit is contained in:
parent
626c062bf0
commit
21c562fcb7
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ the official desktop application for the Telegram messaging service.
|
|||
For license and copyright information please follow this link:
|
||||
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
'''
|
||||
import sys, os, re, subprocess
|
||||
import sys, os, re, subprocess, io
|
||||
|
||||
def finish(code):
|
||||
global executePath
|
||||
|
@ -76,7 +76,7 @@ def checkChangelog():
|
|||
global scriptPath, versionStr, versionStrSmall
|
||||
|
||||
count = 0
|
||||
with open(scriptPath + '/../../changelog.txt', encoding='utf-8') as f:
|
||||
with io.open(scriptPath + '/../../changelog.txt', encoding='utf-8') as f:
|
||||
for line in f:
|
||||
if line.startswith(versionStr + ' ') or line.startswith(versionStrSmall + ' '):
|
||||
count = count + 1
|
||||
|
|
Loading…
Add table
Reference in a new issue