From 7fbcc63db2e401e54da3dce494d20c3d66734559 Mon Sep 17 00:00:00 2001 From: douglas-fva Date: Wed, 25 Oct 2023 10:55:41 +0200 Subject: [PATCH] Test 3 uft8 --- output_function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output_function.py b/output_function.py index 3f6ad10..932393f 100644 --- a/output_function.py +++ b/output_function.py @@ -179,6 +179,6 @@ def output_function(components: list, components_prime: list, sol_x: list, input "warnings": warnings} - with open(stdout.fileno(), encoding="utf-8", closefd=False) as encodedout: + with open(stdout.fileno(), mode='w', encoding="utf8", buffering=1) as encodedout: # outputfile.write(json_object) dump(output_dict, encodedout, ensure_ascii=False, indent = 3)