mirror of
https://github.com/sui-feng-cb/AzurLaneAutoScript1.git
synced 2026-07-27 22:33:12 +08:00
Merge branch 'dev' into fpy
This commit is contained in:
@@ -96,6 +96,8 @@ def read_file(file):
|
||||
data = list(yaml.safe_load_all(s))
|
||||
if len(data) == 1:
|
||||
data = data[0]
|
||||
if not data:
|
||||
data = {}
|
||||
return data
|
||||
elif ext == '.json':
|
||||
with open(file, mode='r', encoding='utf-8') as f:
|
||||
|
||||
Reference in New Issue
Block a user