]> git.lizzy.rs Git - nhentai.git/commitdiff
fix bug while installing on windows / python3 0.3.4
authorRicterZ <ricterzheng@gmail.com>
Sat, 18 May 2019 14:30:20 +0000 (22:30 +0800)
committerRicterZ <ricterzheng@gmail.com>
Sat, 18 May 2019 14:30:20 +0000 (22:30 +0800)
nhentai/__init__.py
setup.py

index 9ad6b6e0c978ff35ede8cbb5fb0e02caae689dde..42ea18608720bc84106e2430f0d746b252c50298 100644 (file)
@@ -1,3 +1,3 @@
-__version__ = '0.3.3'
+__version__ = '0.3.4'
 __author__ = 'RicterZ'
 __email__ = 'ricterzheng@gmail.com'
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',