Setup.py/Python 3 fails as expects a byte stream instead of str

This commit is contained in:
hades committed 2017-08-14 13:40:24 +02:00
1 parent a89dc6533a
commit 4f90714df1
1 file changed
+1 -1
+1 -1
View File
@@ -49,7 +49,7 @@ if __name__ == "__main__":
from pypandoc import convert
long_description = convert("README.md", "rst")\
.translate({ord("\r"): None})
with open("README.rst", "wb") as readme:
with open("README.rst", "w") as readme:
readme.write(long_description)
else:
long_description = open("README.md").read()