Skip to content

Commit cbd017a

Browse files
altendkybbc2
authored andcommitted
Set UTF-8 encoding when reading files in setup.py
altendky/pyqt-tools#38
1 parent 3637b3e commit cbd017a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
def read_files(files):
66
data = []
77
for file in files:
8-
with open(file) as f:
8+
with open(file, encoding='utf-8') as f:
99
data.append(f.read())
1010
return "\n".join(data)
1111

1212

1313
long_description = read_files(['README.md', 'CHANGELOG.md'])
1414

1515
meta = {}
16-
with open('./src/dotenv/version.py') as f:
16+
with open('./src/dotenv/version.py', encoding='utf-8') as f:
1717
exec(f.read(), meta)
1818

1919
setup(

0 commit comments

Comments
 (0)