Skip to content

Commit

Permalink
prometheus_speedtest: Fix build failure by PEP 597 warning in pylint.
Browse files Browse the repository at this point in the history
[PEP 597](https://www.python.org/dev/peps/pep-0597/) adds an additional warning
when using open() without specifying an explicit encoding. This was added to
pylint in pylint-dev/pylint#3826 and eventually broke our
build as a new warning.
  • Loading branch information
jeanralphaviles committed Aug 29, 2021
1 parent e3e4fc3 commit 42c3c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -14,7 +14,7 @@ def read_file(rel_path):
rel_path: relative file path, string.
"""
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, rel_path), 'r') as rel_file:
with open(os.path.join(here, rel_path), 'r', encoding='utf-8') as rel_file:
return rel_file.read().strip()


Expand Down

0 comments on commit 42c3c3c

Please sign in to comment.