mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +00:00
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.
This commit is contained in:
parent
b82e0d5176
commit
790549fd25
1 changed files with 2 additions and 1 deletions
3
setup.py
3
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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue