mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
Set encoding when reading changelog for appdata
This commit is contained in:
parent
4ca3f6a1b3
commit
e8568c6701
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue