summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-06-20 13:00:02 +0200
committerChristian Breunig <christian@breunig.cc>2026-06-20 14:12:23 +0200
commitf2bd492fddd41a1a25dce654d69080e7fe059dbb (patch)
tree7eab8409657a514ed5984c3fd5d70b011045d171 /python
parent2c7757048169be7db306efbedacd3ae9af4fbb64 (diff)
downloadvyos-1x-f2bd492fddd41a1a25dce654d69080e7fe059dbb.tar.gz
vyos-1x-f2bd492fddd41a1a25dce654d69080e7fe059dbb.zip
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.
Diffstat (limited to 'python')
-rw-r--r--python/vyos/utils/process.py4
1 files changed, 2 insertions, 2 deletions
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,
)