Skip to content

Commit

Permalink
Open our README appropriately
Browse files Browse the repository at this point in the history
Systems without a LOCALE present will not be able to read our file
appropriately on Python 3. This was causing our Python 3 CI jobs on
GitLab to fail.
  • Loading branch information
sigmavirus24 committed Jun 26, 2016
1 parent b82e0d5 commit 790549f
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 @@ -3,6 +3,7 @@
from __future__ import with_statement

import functools
import io
import os
import sys

Expand Down Expand Up @@ -49,7 +50,7 @@ def get_long_description():
"""Generate a long description from the README and CHANGES files."""
descr = []
for fname in ('README.rst',):
with open(fname) as f:
with io.open(fname, encoding='utf-8') as f:
descr.append(f.read())
return '\n\n'.join(descr)

Expand Down

0 comments on commit 790549f

Please sign in to comment.