1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-06-02 23:15:18 +08:00

Fix: rename to removeprefix

This commit is contained in:
LmeSzinc
2026-05-22 18:42:11 +08:00
parent 4d836d34cf
commit 0491a0e47d
3 changed files with 10 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ from dataclasses import dataclass
from tqdm import tqdm
from module.base.decorator import cached_property
from module.device.method.utils import remove_prefix
from module.device.method.utils import removeprefix
REGEX_SETTING = re.compile(r'PlayerPrefs.Get(\w{1,10})\((.*)\)')
REGEX_SETTING_KEY = re.compile(r'"(.*?)"')
@@ -173,7 +173,7 @@ class SettingExtractor:
if not settings:
continue
yield ''
f = remove_prefix(file, folder).replace("\\", "/")
f = removeprefix(file, folder).replace("\\", "/")
yield f' # {f}'
for setting in settings:
if setting.key in dic_settings: