Skip to content

Commit 8147724

Browse files
Merge pull request #258 from tsunammis/master
Fix decoding issues when opening README in setup.py
2 parents bb756a8 + ac0c248 commit 8147724

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22

3+
import io
34
import os
45
import sys
56

@@ -17,7 +18,7 @@
1718
import pypandoc
1819
README = pypandoc.convert(path_readme, 'rst')
1920
except (IOError, ImportError):
20-
with open(path_readme) as readme:
21+
with io.open(path_readme, encoding='utf-8') as readme:
2122
README = readme.read()
2223

2324
VERSION = None

0 commit comments

Comments
 (0)