diff --git a/reproduce/Step_3.py b/reproduce/Step_3.py index facb913e..f3aae83e 100644 --- a/reproduce/Step_3.py +++ b/reproduce/Step_3.py @@ -28,9 +28,10 @@ def run_queries_and_save_to_json( ): loop = always_get_an_event_loop() - with open(output_file, "a", encoding="utf-8") as result_file, open( - error_file, "a", encoding="utf-8" - ) as err_file: + with ( + open(output_file, "a", encoding="utf-8") as result_file, + open(error_file, "a", encoding="utf-8") as err_file, + ): result_file.write("[\n") first_entry = True diff --git a/reproduce/Step_3_openai_compatible.py b/reproduce/Step_3_openai_compatible.py index 885220fa..56159ee1 100644 --- a/reproduce/Step_3_openai_compatible.py +++ b/reproduce/Step_3_openai_compatible.py @@ -59,9 +59,10 @@ def run_queries_and_save_to_json( ): loop = always_get_an_event_loop() - with open(output_file, "a", encoding="utf-8") as result_file, open( - error_file, "a", encoding="utf-8" - ) as err_file: + with ( + open(output_file, "a", encoding="utf-8") as result_file, + open(error_file, "a", encoding="utf-8") as err_file, + ): result_file.write("[\n") first_entry = True