mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
Opt: Use logger in deploy
This commit is contained in:
@@ -82,16 +82,4 @@ def poor_yaml_write(data, file, template_file=DEPLOY_TEMPLATE):
|
||||
text = re.sub(f'{key}:.*?\n', f'{key}: {value}\n', text)
|
||||
|
||||
with open(file, 'w', encoding='utf-8', newline='') as f:
|
||||
f.write(text)
|
||||
|
||||
|
||||
def hr1(title):
|
||||
print('=' * 20 + ' ' + title + ' ' + '=' * 20)
|
||||
|
||||
|
||||
def hr0(title):
|
||||
middle = '|' + ' ' * 20 + title + ' ' * 20 + '|'
|
||||
border = '+' + '-' * (len(middle) - 2) + '+'
|
||||
print(border)
|
||||
print(middle)
|
||||
print(border)
|
||||
f.write(text)
|
||||
Reference in New Issue
Block a user