Skip to content

Commit 35a753a

Browse files
committed
编译报错问题修复
1 parent 2fa6de9 commit 35a753a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

python/setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
import io
1010

1111
long_description = ""
12-
with open('README.md') as f:
13-
long_description = f.read()
1412

15-
16-
# long_description = io.open('README.md', 'r', encoding="utf-8").read()
13+
if sys.version_info < (3, 0) :
14+
with open('README.md') as f:
15+
long_description = f.read()
16+
else:
17+
long_description = io.open('README.md', 'r', encoding="utf-8").read()
1718
# if sys.version_info < (3, 0) and platform.system() == 'Windows':
1819
# long_description = long_description.decode("utf-8").encode("gbk")
1920

0 commit comments

Comments
 (0)