From d42ab9cf776ff667ff6348c3a7719ca8428d3dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Thu, 14 Nov 2024 23:34:51 +0800 Subject: [PATCH] format --- py/LunaTranslator/cishu/mdict.py | 12 ++++++------ py/LunaTranslator/gui/setting_about.py | 7 ++++--- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/py/LunaTranslator/cishu/mdict.py b/py/LunaTranslator/cishu/mdict.py index 0663c1d0..c3ab1912 100644 --- a/py/LunaTranslator/cishu/mdict.py +++ b/py/LunaTranslator/cishu/mdict.py @@ -2608,14 +2608,14 @@ if (content.style.display === 'block') { extra = "display: none;" uid = str(uuid.uuid4()) lis.append( - rf"""
  • {title}
    - {res} -
  • """ + r"""
  • {}
    + {} +
  • """.format(uid,uid,title,extra,res) ) - content += rf""" + content += r""" """ + {} + """.format(''.join(lis)) return content diff --git a/py/LunaTranslator/gui/setting_about.py b/py/LunaTranslator/gui/setting_about.py index daeabfea..04ff478a 100644 --- a/py/LunaTranslator/gui/setting_about.py +++ b/py/LunaTranslator/gui/setting_about.py @@ -78,12 +78,13 @@ def doupdate(): bit = "_x86" _6432 = "32" shutil.copy( - rf".\files\plugins\shareddllproxy{_6432}.exe", + r".\files\plugins\shareddllproxy{}.exe".format(_6432), gobject.getcachedir("Updater.exe"), ) subprocess.Popen( - rf".\cache\Updater.exe update {int(gobject.baseobject.istriggertoupdate)} .\cache\update\LunaTranslator{bit} " - + dynamiclink("{main_server}") + r".\cache\Updater.exe update {} .\cache\update\LunaTranslator{} {}".format( + int(gobject.baseobject.istriggertoupdate), bit, dynamiclink("{main_server}") + ) )