Przeglądaj źródła

Fix get_long_description

`open` use different default encodings on different operating systems
PairZhu 11 miesięcy temu
rodzic
commit
4d2d0f7335
1 zmienionych plików z 1 dodań i 1 usunięć
  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