From f2bd492fddd41a1a25dce654d69080e7fe059dbb Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 20 Jun 2026 13:00:02 +0200 Subject: utils: T9003: remove dead-weight decode argument from cmd() The decode argument of cmd() is never changed and thus always pointing to utf-8, remove the code. --- python/vyos/utils/process.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/vyos/utils/process.py b/python/vyos/utils/process.py index 3e5576925..7b6f41a99 100644 --- a/python/vyos/utils/process.py +++ b/python/vyos/utils/process.py @@ -176,7 +176,7 @@ def run(command, flag='', shell=None, input=None, timeout=None, env=None, def cmd(command, flag='', shell=None, input=None, timeout=None, env=None, - stdout=PIPE, stderr=PIPE, decode='utf-8', raising=None, message='', + stdout=PIPE, stderr=PIPE, raising=None, message='', expect=[0], vrf=None, netns=None): """ A wrapper around popen, which returns the stdout and @@ -192,7 +192,7 @@ def cmd(command, flag='', shell=None, input=None, timeout=None, env=None, stdout=stdout, stderr=stderr, input=input, timeout=timeout, env=env, shell=shell, - decode=decode, + decode='utf-8', vrf=vrf, netns=netns, ) -- cgit v1.2.3