Skip to content

Commit

Permalink
调整 YAML 读取
Browse files Browse the repository at this point in the history
  • Loading branch information
TakWolf committed Jul 4, 2024
1 parent 0071b38 commit 2db5ba5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/utils/fs_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 2db5ba5

Please sign in to comment.