Skip to content

Commit 779c67a

Browse files
committed
add backward compatibility for python2
1 parent 8bb8de0 commit 779c67a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import codecs
12
import shutil
23
import setuptools
34

@@ -24,7 +25,7 @@ def setup():
2425
license='MIT',
2526
version=__version__,
2627
description=__description__,
27-
long_description=open('README.md').read(),
28+
long_description=codecs.open('README.md', encoding='UTF-8').read(),
2829
long_description_content_type='text/markdown',
2930
author=__author__,
3031
author_email=__author_email__,

0 commit comments

Comments
 (0)