summaryrefslogtreecommitdiff
path: root/ATRI/utils/yaml.py
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2021-05-04 14:27:56 +0800
committerKyomotoi <[email protected]>2021-05-04 14:27:56 +0800
commitea7f48011c34fdaec7e91af7eb373c8174e439e6 (patch)
treee4f14eaacde37774d49e7f98ac1ff4635049d80a /ATRI/utils/yaml.py
parent07a7e41f72cfa9dfd207a04445f4aa5b0b6fa3ce (diff)
downloadATRI-ea7f48011c34fdaec7e91af7eb373c8174e439e6.tar.gz
ATRI-ea7f48011c34fdaec7e91af7eb373c8174e439e6.tar.bz2
ATRI-ea7f48011c34fdaec7e91af7eb373c8174e439e6.zip
✨🐛 更新
新增:老婆! 新增:涩图 修复:manage中出现的bug 优化:nsfw不再用float,换为int
Diffstat (limited to 'ATRI/utils/yaml.py')
-rw-r--r--ATRI/utils/yaml.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ATRI/utils/yaml.py b/ATRI/utils/yaml.py
index 1ad7377..59e8992 100644
--- a/ATRI/utils/yaml.py
+++ b/ATRI/utils/yaml.py
@@ -3,8 +3,8 @@ import yaml
from pathlib import Path
-def load_yml(file: Path, encoding="utf-8") -> dict:
+def load_yml(file: Path, encoding='utf-8') -> dict:
"""加载 yml 文件"""
- with open(file, "r", encoding=encoding) as f:
+ with open(file, 'r', encoding=encoding) as f:
data = yaml.safe_load(f)
return data