syntax fix

This commit is contained in:
Dazed 2024-03-28 07:23:03 -05:00
parent 715e8b6382
commit 48713365f0
5 changed files with 5 additions and 5 deletions

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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'

View file

@ -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'