Set encoding on open call in setup.py (#2727)

* Set encoding on open call in setup.py

If a host OS does not have a UTF-8 locale set the read() call is unable
to read the utf-8 encoded README.rst file.

* Remove non-ASCII characters from README.rst
This commit is contained in:
Matt Baker
2023-07-07 12:19:41 +03:00
committed by GitHub
parent c4f8e72765
commit 4b023bc9ad
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ class PyTest(_Command):
def read(fname):
with open(os.path.join(__location__, fname)) as fd:
with open(os.path.join(__location__, fname), encoding='utf-8') as fd:
return fd.read()