refactor: Remove useless LOCK
This commit is contained in:
parent
4a989b53ad
commit
e782129e0a
1 changed files with 0 additions and 2 deletions
2
main.py
2
main.py
|
|
@ -210,8 +210,6 @@ def searchCodes(page, pbar):
|
|||
return tokens
|
||||
|
||||
def translateGPT(t, history):
|
||||
global LOCK
|
||||
|
||||
# If there isn't any Japanese in the text just return it
|
||||
pattern = r'[一-龠]+|[ぁ-ゔ]+|[ァ-ヴー]+'
|
||||
if not re.search(pattern, t):
|
||||
|
|
|
|||
Loading…
Reference in a new issue