From 1af530f9e43425095074d574701313ffa0609cee Mon Sep 17 00:00:00 2001 From: jshixiong <2645476194@qq.com> Date: Thu, 8 Aug 2024 13:53:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(control):=20=E7=B3=BB=E7=BB=9F=E6=8E=A7?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/sys_control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/sys_control.py b/app/sys_control.py index e4017e4..530f8a2 100644 --- a/app/sys_control.py +++ b/app/sys_control.py @@ -9,7 +9,7 @@ def execute_cpu_full_script(): ['python3', script_path], stdout=subprocess.PIPE, stderr=subprocess.PIPE, - text=True + universal_newlines=True ) output = result.stdout # error = result.stderr @@ -26,7 +26,7 @@ def execute_memory_full_script(): ['python3', script_path], stdout=subprocess.PIPE, stderr=subprocess.PIPE, - text=True + universal_newlines=True ) output = result.stdout # error = result.stderr