Skip to content

Commit

Permalink
setup.py: fix parsing debian changelog with nonascii chars
Browse files Browse the repository at this point in the history
  • Loading branch information
rp- committed Jul 19, 2021
1 parent 00f1970 commit 1c409ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import os
import glob
import sys
import codecs

from setuptools import setup, Command

Expand Down Expand Up @@ -49,7 +50,7 @@ def finalize_options(self):
def run(self):
version = get_version()
try:
with open("debian/changelog") as f:
with codecs.open("debian/changelog", encoding='utf8', errors='ignore') as f:
firstline = f.readline()
if version not in firstline:
# returning false is not promoted
Expand Down

0 comments on commit 1c409ad

Please sign in to comment.