diff --git a/tools/utils/fs_util.py b/tools/utils/fs_util.py index 99e79e1..b734943 100644 --- a/tools/utils/fs_util.py +++ b/tools/utils/fs_util.py @@ -22,4 +22,5 @@ def write_json(data: Any, path: Path): def read_yaml(path: Path) -> Any: - return yaml.safe_load(path.read_text('utf-8')) + with path.open('rb') as file: + return yaml.safe_load(file)