From 1430f0d4b18e6b5a44c5bb689e23b4e5f95edbd9 Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Tue, 5 Sep 2023 10:58:29 +0800 Subject: [PATCH] Update Proxy.py Signed-off-by: Loren Eteval --- Furious/Utility/Proxy.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Furious/Utility/Proxy.py b/Furious/Utility/Proxy.py index 2b7db28..b3d418b 100644 --- a/Furious/Utility/Proxy.py +++ b/Furious/Utility/Proxy.py @@ -16,6 +16,7 @@ # along with this program. If not, see . from Furious.Utility.Constants import PLATFORM +from Furious.Utility.Utility import runCommand import logging import subprocess @@ -23,10 +24,6 @@ import subprocess logger = logging.getLogger(__name__) -def runCommand(*args, **kwargs): - return subprocess.run(*args, **kwargs) - - def linuxProxyConfig(proxy_args, arg0, arg1): runCommand( [ @@ -51,6 +48,7 @@ def darwinProxyConfig(operation, *args): check=True, ) + # Replace with command.stdout.decode('utf-8', 'replace')...? service = list(filter(lambda x: x != '', command.stdout.decode().split('\n'))) return service[1:]