mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-27 04:03:09 +08:00
update open calls to pass encoding (#684)
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user