瀏覽代碼

Fix get_long_description

`open` use different default encodings on different operating systems
PairZhu 11 月之前
父節點
當前提交
4d2d0f7335
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      setup.py

+ 1 - 1
setup.py

@@ -69,7 +69,7 @@ def get_install_requires():
 
 
 def get_long_description():
-    with open("README.md") as f:
+    with open("README.md", "r", encoding="utf-8") as f:
         long_description = f.read()
     try:
         # when this package is being released