Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PYLint] fixed encoding issue with pylint 2.4.2 #5267

Merged
merged 2 commits into from Oct 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pip/py3-pylint.file
@@ -1,2 +1,2 @@
Patch0: pylint-2.4.2-encoding
Requires: py3-astroid
%define PipPreBuild export LC_ALL=C
3 changes: 1 addition & 2 deletions pip/requirements.txt
Expand Up @@ -181,8 +181,7 @@ pydot==1.4.1
pyflakes==2.1.1
Pygments==2.4.2
pylint==1.9.5 ; python_version<'3.0'
pylint==1.9.5 ; python_version>'3.0'
pylint==1.9.5 ; python_version>'3.0' ; platform_machine=='aarch64'
pylint==2.4.2 ; python_version>'3.0'
pymongo==3.9.0
pyOpenSSL==19.0.0
pyparsing==2.4.2
Expand Down
13 changes: 13 additions & 0 deletions pylint-2.4.2-encoding.patch
@@ -0,0 +1,13 @@
diff --git a/setup.py b/setup.py
index 4d16b79..107b72f 100644
--- a/setup.py
+++ b/setup.py
@@ -56,7 +56,7 @@ extras_require = __pkginfo__.get("extras_require", {})

readme_path = join(base_dir, "README.rst")
if exists(readme_path):
- with open(readme_path) as stream:
+ with open(readme_path, encoding='utf8', errors='ignore') as stream:
long_description = stream.read()
else:
long_description = ""