Skip to content

Commit 79aebce

Browse files
committed
Try fixing Windows decoding
1 parent f42b00d commit 79aebce

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

setup.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
import sys
44
import numpy as np
55

6-
7-
8-
with open("README.md", 'r') as readme:
9-
if sys.version_info[0] < 3:
6+
if sys.version_info[0] < 3:
7+
with open("README.md", 'r') as readme:
108
long_description = readme.read().decode('utf-8')
11-
else:
9+
else:
10+
with open("README.md", 'r', encoding="utf-8") as readme:
1211
long_description = readme.read()
1312

1413
current_dir = os.getcwd()

0 commit comments

Comments
 (0)