Skip to content

Commit 509b098

Browse files
committed
Open README in utf-8 for Windows
1 parent 05aa100 commit 509b098

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from io import open
12
from setuptools import setup
23
from setuptools.command.test import test as TestCommand
34

@@ -15,7 +16,7 @@ def run_tests(self):
1516
exit(errno)
1617

1718

18-
with open('README.rst') as reader:
19+
with open('README.rst', encoding='utf-8') as reader:
1920
readme = reader.read()
2021

2122
setup(

0 commit comments

Comments
 (0)