From 951268095f8508b9f4fcd80c7cf6c91d77e5d367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Tue, 5 Mar 2024 23:49:49 +0800 Subject: [PATCH] Revert "Update sakura.py" This reverts commit 659d9b47bce6b3d8f1108cfb21284d7c50e3fda4. --- LunaTranslator/LunaTranslator/translator/sakura.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/translator/sakura.py b/LunaTranslator/LunaTranslator/translator/sakura.py index 64ae6965..4931d21d 100644 --- a/LunaTranslator/LunaTranslator/translator/sakura.py +++ b/LunaTranslator/LunaTranslator/translator/sakura.py @@ -8,7 +8,8 @@ import json class TS(basetrans): def langmap(self): return {"zh": "zh-CN"} - def inittranslator(self) : + def __init__(self, typename) : + super( ).__init__(typename) self.timeout = 30 self.api_url = "" self.history = {