mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ci: fix find_build_apps.py failure with py3 due to non ascii chars
find_build_apps.py would fail when reading non-ascii chars on systems where the default encoding was ascii.
This commit is contained in:
parent
1531f2db2a
commit
1d1e4497ba
@ -8,6 +8,7 @@ from collections import namedtuple
|
||||
import logging
|
||||
import json
|
||||
import typing
|
||||
from io import open
|
||||
|
||||
DEFAULT_TARGET = "esp32"
|
||||
|
||||
@ -320,7 +321,7 @@ class BuildSystem(object):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user