summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-06-26 07:13:16 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2016-06-26 07:13:16 -0500
commit790549fd25eb50ceed852ce3436e3afc111bbf37 (patch)
tree4e80553d28c88982fc50b974fa43a8b4eb84d18a /setup.py
parentb82e0d5176a0cfb8acef72d0cf47064507c90cc8 (diff)
downloadflake8-790549fd25eb50ceed852ce3436e3afc111bbf37.tar.gz
Open our README appropriately
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.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index f6eac78..2624db4 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,7 @@
from __future__ import with_statement
import functools
+import io
import os
import sys
@@ -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)