diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-06-26 07:13:16 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-06-26 07:13:16 -0500 |
| commit | 790549fd25eb50ceed852ce3436e3afc111bbf37 (patch) | |
| tree | 4e80553d28c88982fc50b974fa43a8b4eb84d18a /setup.py | |
| parent | b82e0d5176a0cfb8acef72d0cf47064507c90cc8 (diff) | |
| download | flake8-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.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |
