update open calls to pass encoding (#684)

This commit is contained in:
alrex
2021-09-22 10:16:14 -07:00
committed by GitHub
parent 1cf5021bb6
commit 354bdc42d9
44 changed files with 86 additions and 84 deletions

View File

@ -8,7 +8,7 @@ import readme_renderer.rst
def is_valid_rst(path):
"""Checks if RST can be rendered on PyPI."""
with open(path) as readme_file:
with open(path, encoding="utf-8") as readme_file:
markup = readme_file.read()
return readme_renderer.rst.render(markup, stream=sys.stderr) is not None