Skip to content

Commit

Permalink
ci: fix find_build_apps.py failure with py3 due to non ascii chars
Browse files Browse the repository at this point in the history
find_build_apps.py would fail when reading non-ascii chars on systems where
the default encoding was ascii.
  • Loading branch information
ESP-Marius committed Jun 9, 2020
1 parent 11269df commit c39b373
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/find_build_apps/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import logging
import json
import typing
from io import open

DEFAULT_TARGET = "esp32"

Expand Down Expand Up @@ -320,7 +321,7 @@ def get_md_or_rst(app_path):
readme_path = get_md_or_rst(os.path.dirname(app_path))
if not readme_path:
return None
with open(readme_path, "r") as readme_file:
with open(readme_path, "r", encoding='utf8') as readme_file:
return readme_file.read()

@staticmethod
Expand Down

0 comments on commit c39b373

Please sign in to comment.