1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 12:08:21 +08:00

Opt: Enhancement clean up

This commit is contained in:
LmeSzinc
2022-04-23 16:05:03 +08:00
parent 932191a51d
commit b6a5982db9
16 changed files with 112 additions and 111 deletions

View File

@@ -182,7 +182,7 @@ class ModuleExtractor:
folder = os.path.join(MODULE_FOLDER, self.name)
if not os.path.exists(folder):
os.mkdir(folder)
with open(os.path.join(folder, BUTTON_FILE), 'w') as f:
with open(os.path.join(folder, BUTTON_FILE), 'w', newline='') as f:
for text in self.expression:
f.write(text + '\n')