fix printing changelog with non-ascii chars

This commit is contained in:
filimonov 2020-01-10 14:34:02 +01:00 committed by GitHub
parent 44ff31fa63
commit 83623f232a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -455,7 +455,7 @@ def make_changelog(new_tag, prev_tag, pull_requests_nums, repo, repo_folder, sta
# Remove double whitespaces and trailing whitespaces # Remove double whitespaces and trailing whitespaces
changelog = re.sub(r' {2,}| +$', r''.format(repo), changelog) changelog = re.sub(r' {2,}| +$', r''.format(repo), changelog)
print(changelog) print(changelog.encode('utf-8'))
if __name__ == '__main__': if __name__ == '__main__':