]> git.lizzy.rs Git - nhentai.git/blobdiff - setup.py
Update README.rst
[nhentai.git] / setup.py
index f48053777656cd042e17bd056c719b6ab33dad37..7b87d5cc320f2ff02f860890e869baa9cf53cb3a 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -11,8 +11,10 @@ with open('requirements.txt') as f:
 
 
 def long_description():
-    with codecs.open('README.rst', 'r') as f:
-        return str(f.read())
+    with codecs.open('README.rst', 'rb') as readme:
+        if not sys.version_info < (3, 0, 0):
+            return readme.read().decode('utf-8')
+
 
 setup(
     name='nhentai',