diff --git a/nhentai/__init__.py b/nhentai/__init__.py index 9ad6b6e..42ea186 100644 --- a/nhentai/__init__.py +++ b/nhentai/__init__.py @@ -1,3 +1,3 @@ -__version__ = '0.3.3' +__version__ = '0.3.4' __author__ = 'RicterZ' __email__ = 'ricterzheng@gmail.com' diff --git a/setup.py b/setup.py index f480537..7b87d5c 100644 --- 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',