From 8b9bc9211c95e49a63a6cc3ab16aff04d235b72d Mon Sep 17 00:00:00 2001 From: daklqw Date: Fri, 16 Apr 2021 10:37:37 +0800 Subject: [PATCH] Update judge_client print(sys.stderr) => print(file=sys.stderr) --- judger/judge_client | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/judger/judge_client b/judger/judge_client index 788049a..a27de0c 100644 --- a/judger/judge_client +++ b/judger/judge_client @@ -140,7 +140,7 @@ def handle_task(): uoj_download('/judger', 'judger_update.zip') execute('unzip -o judger_update.zip && cd %s && make clean && make' % uoj_judger_path()) except: - print(sys.stderr, "error when update") + print("error when update", file=sys.stderr) if jconf['judger_name'] == 'main_judger': uoj_sync_judge_client() need_restart = True @@ -149,7 +149,7 @@ def handle_task(): socket_server_thread.join() print_judge_client_status() - print(sys.stderr, "goodbye!") + print("goodbye!", file=sys.stderr) sys.exit(0)