2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Use generate_target for timestamped changelog generator.

This commit is contained in:
John Preston
2022-01-25 14:46:38 +03:00
parent 624d83dc60
commit 6af255923a
2 changed files with 15 additions and 5 deletions

View File

@@ -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, "r") as f:
changelog_lines = f.read().splitlines()
with open(changelog_path, "rb") as f:
changelog_lines = f.read().decode('utf-8').splitlines()
releases = []
for l in changelog_lines: