Skip to content

Commit

Permalink
[Setup] use utf-8 explicitly in setup.py, fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankoegl committed Jun 30, 2014
1 parent b943244 commit ffcafea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

from distutils.core import setup
import re
import io
import os.path

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

Expand Down

0 comments on commit ffcafea

Please sign in to comment.