mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-10 06:44:18 +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
|
from __future__ import with_statement
|
||||||
|
|
||||||
import functools
|
import functools
|
||||||
|
import io
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
@ -49,7 +50,7 @@ def get_long_description():
|
||||||
"""Generate a long description from the README and CHANGES files."""
|
"""Generate a long description from the README and CHANGES files."""
|
||||||
descr = []
|
descr = []
|
||||||
for fname in ('README.rst',):
|
for fname in ('README.rst',):
|
||||||
with open(fname) as f:
|
with io.open(fname, encoding='utf-8') as f:
|
||||||
descr.append(f.read())
|
descr.append(f.read())
|
||||||
return '\n\n'.join(descr)
|
return '\n\n'.join(descr)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue