Merge pull request #16 from an-death/platform-independent-encoding-on-setup

Platform independent encoding on setup.py
This commit is contained in:
John Reese 2019-10-31 21:19:39 -07:00 committed by GitHub
commit 7d51850046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
from setuptools import setup
with open("README.md") as f:
with open("README.md", encoding="utf8") as f:
readme = f.read()
with open("aioitertools/__init__.py") as f:
with open("aioitertools/__init__.py", encoding="utf8") as f:
for line in f:
if line.startswith("__version__"):
version = line.split('"')[1]