syntax fix
This commit is contained in:
parent
715e8b6382
commit
48713365f0
5 changed files with 5 additions and 5 deletions
|
|
@ -84,7 +84,7 @@ def handleAnim(filename, estimate):
|
|||
|
||||
# Print Result
|
||||
end = time.time()
|
||||
json.dump(translatedData[0], outFile, ensure_ascii=False, indent=4))
|
||||
json.dump(translatedData[0], outFile, ensure_ascii=False, indent=4)
|
||||
tqdm.write(getResultString(translatedData, end - start, filename))
|
||||
with LOCK:
|
||||
totalTokens[0] += translatedData[1][0]
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ def handleJSON(filename, estimate):
|
|||
|
||||
# Print Result
|
||||
end = time.time()
|
||||
json.dump(translatedData[0], outFile, ensure_ascii=False, indent=4))
|
||||
json.dump(translatedData[0], outFile, ensure_ascii=False, indent=4)
|
||||
tqdm.write(getResultString(translatedData, end - start, filename))
|
||||
with LOCK:
|
||||
TOKENS[0] += translatedData[1][0]
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ def handleLune(filename, estimate):
|
|||
|
||||
# Print Result
|
||||
end = time.time()
|
||||
json.dump(translatedData[0], outFile, ensure_ascii=False, indent=4))
|
||||
json.dump(translatedData[0], outFile, ensure_ascii=False, indent=4)
|
||||
tqdm.write(getResultString(translatedData, end - start, filename))
|
||||
with LOCK:
|
||||
TOKENS[0] += translatedData[1][0]
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ def handleMVMZ(filename, estimate):
|
|||
if not estimate:
|
||||
try:
|
||||
with open('translated/' + filename, 'w', encoding='utf-8') as outFile:
|
||||
json.dump(translatedData[0], outFile, ensure_ascii=False, indent=4))
|
||||
json.dump(translatedData[0], outFile, ensure_ascii=False, indent=4)
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
return 'Fail'
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ def handleWOLF(filename, estimate):
|
|||
if not estimate:
|
||||
try:
|
||||
with open('translated/' + filename, 'w', encoding='utf-8') as outFile:
|
||||
json.dump(translatedData[0], outFile, ensure_ascii=False, indent=4), indent=4)
|
||||
json.dump(translatedData[0], outFile, ensure_ascii=False, indent=4)
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
return 'Fail'
|
||||
|
|
|
|||
Loading…
Reference in a new issue