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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user