From ca38e460d72a825b3f14c323ec61ceaceb89c992 Mon Sep 17 00:00:00 2001 From: sqzw-x Date: Tue, 20 Feb 2024 18:55:30 +0800 Subject: [PATCH] fix(nfo): python3.8 unsupported with expression --- src/models/core/nfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/core/nfo.py b/src/models/core/nfo.py index bccd5a7..c6b2603 100644 --- a/src/models/core/nfo.py +++ b/src/models/core/nfo.py @@ -108,7 +108,7 @@ def write_nfo(json_data, nfo_new_path, folder_new_path, file_path, edit_mode=Fal if not os.path.exists(folder_new_path): os.makedirs(folder_new_path) delete_file(nfo_new_path) # 避免115出现重复文件 - with (open(nfo_new_path, "wt", encoding='UTF-8') as code): + with open(nfo_new_path, "wt", encoding='UTF-8') as code: print('', file=code) print("", file=code)