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