Skip to content

Commit ffcafea

Browse files
committed
[Setup] use utf-8 explicitly in setup.py, fixes #8
1 parent b943244 commit ffcafea

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
@@ -2,11 +2,12 @@
22

33
from distutils.core import setup
44
import re
5+
import io
56
import os.path
67

78
dirname = os.path.dirname(os.path.abspath(__file__))
89
filename = os.path.join(dirname, 'jsonpointer.py')
9-
src = open(filename).read()
10+
src = io.open(filename, encoding='utf-8').read()
1011
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", src))
1112
docstrings = re.findall('"""(.*)"""', src)
1213

0 commit comments

Comments
 (0)