Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

Commit 3670356

Browse files
committed
Specify UTF-8 encoding in setup.py's _read
Previously it omitted the "encoding" parameter, which uses a platform-dependent default and broke when reading UTF-8 in some older macOS environments.
1 parent 1fcc260 commit 3670356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def package_maven():
182182

183183
def _read(filename):
184184
""" Helper function for reading in project files """
185-
with open(filename) as file:
185+
with open(filename, encoding='UTF-8') as file:
186186
return file.read()
187187

188188

0 commit comments

Comments
 (0)