Skip to content

Commit ede6817

Browse files
committed
v2.6.2: 兼容python3.7语法,无功能更新 (#451)
1 parent d633a5d commit ede6817

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/jmcomic/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# 被依赖方 <--- 使用方
33
# config <--- entity <--- toolkit <--- client <--- option <--- downloader
44

5-
__version__ = '2.6.1'
5+
__version__ = '2.6.2'
66

77
from .api import *
88
from .jm_plugin import *

src/jmcomic/jm_client_impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ def update_api_domain(self):
10331033
jm_log('api.update_domain.empty',
10341034
f'获取禁漫最新API域名失败, 返回值: {res_json}')
10351035
return
1036-
new_server_list: list[str] = res_data['Server']
1036+
new_server_list: List[str] = res_data['Server']
10371037
old_server_list = JmModuleConfig.DOMAIN_API_LIST
10381038
jm_log('api.update_domain.success',
10391039
f'获取到最新的API域名,替换jmcomic内置域名:(new){new_server_list} ---→ (old){old_server_list}'

src/jmcomic/jm_option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def parse_detail_rule(cls, album, photo, rule: str):
134134
return str(DetailEntity.get_dirname(detail, rule[1:]))
135135

136136
# noinspection PyMethodMayBeStatic
137-
def split_rule_dsl(self, rule_dsl: str) -> list[str]:
137+
def split_rule_dsl(self, rule_dsl: str) -> List[str]:
138138
if '/' in rule_dsl:
139139
rule_list = rule_dsl.split('/')
140140
elif '_' in rule_dsl:

0 commit comments

Comments
 (0)