mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-24 01:06:59 +00:00
Set encoding when reading changelog for appdata
This commit is contained in:
parent
4ca3f6a1b3
commit
e8568c6701
@ -9,8 +9,8 @@ def parse_changelog(changelog_path):
|
||||
version_re = re.compile(r'([\d.-]+)\s+(\w+)?\s*\((\d{2}.\d{2}\.\d{2})\)')
|
||||
entry_re = re.compile(r'-\s(.*)')
|
||||
|
||||
with open(changelog_path, "rb") as f:
|
||||
changelog_lines = f.read().decode('utf-8').splitlines()
|
||||
with open(changelog_path, "r", encoding="utf-8") as f:
|
||||
changelog_lines = f.read().splitlines()
|
||||
|
||||
releases = []
|
||||
for l in changelog_lines:
|
||||
|
Loading…
Reference in New Issue
Block a user