mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
typos
This commit is contained in:
@@ -176,8 +176,8 @@ def request_callback(future, index, datas):
|
|||||||
datas[index]['header'] = str(dict(headers))[1:-1]
|
datas[index]['header'] = str(dict(headers))[1:-1]
|
||||||
if isinstance(text, str):
|
if isinstance(text, str):
|
||||||
title = get_title(text).strip()
|
title = get_title(text).strip()
|
||||||
datas[index]['title'] = utils.remove_string(title)
|
datas[index]['title'] = utils.remove_invalid_string(title)
|
||||||
datas[index]['response'] = utils.remove_string(text)
|
datas[index]['response'] = utils.remove_invalid_string(text)
|
||||||
|
|
||||||
|
|
||||||
def get_connector():
|
def get_connector():
|
||||||
|
|||||||
@@ -277,7 +277,7 @@ def mark_subdomain(old_data, now_data):
|
|||||||
return mark_data
|
return mark_data
|
||||||
|
|
||||||
|
|
||||||
def remove_string(string):
|
def remove_invalid_string(string):
|
||||||
# Excel文件中单元格值不能直接存储以下非法字符
|
# Excel文件中单元格值不能直接存储以下非法字符
|
||||||
return re.sub(r'[\000-\010]|[\013-\014]|[\016-\037]', r'', string)
|
return re.sub(r'[\000-\010]|[\013-\014]|[\016-\037]', r'', string)
|
||||||
|
|
||||||
@@ -348,8 +348,8 @@ def get_timestamp():
|
|||||||
return int(time.time())
|
return int(time.time())
|
||||||
|
|
||||||
|
|
||||||
def get_classname(clsobj):
|
def get_classname(classobj):
|
||||||
return clsobj.__class__.__name__
|
return classobj.__class__.__name__
|
||||||
|
|
||||||
|
|
||||||
def python_version():
|
def python_version():
|
||||||
|
|||||||
Reference in New Issue
Block a user