From 97bb69a42cec87953601420650488c9efe747580 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 8 Jan 2025 15:14:39 +0100 Subject: [PATCH] replace removed python module pipes with shlex https://docs.python.org/3/whatsnew/3.13.html#pep-594-remove-dead-batteries-from-the-standard-library --- plugins/wb.admin/backend/wb_server_management.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/wb.admin/backend/wb_server_management.py b/plugins/wb.admin/backend/wb_server_management.py index 40ed515d2..c89c98b6c 100644 --- a/plugins/wb.admin/backend/wb_server_management.py +++ b/plugins/wb.admin/backend/wb_server_management.py @@ -28,7 +28,7 @@ import threading import tempfile import io -import pipes +import shlex import subprocess import time import inspect @@ -511,7 +511,7 @@ def spawn_process(self, command, as_user=Users.CURRENT, user_password=None, outp return 0 def list2cmdline(self, args): - return " ".join([pipes.quote(a) or "''" for a in args]) + return " ".join([shlex.quote(a) or "''" for a in args]) _process_ops_classes.append(ProcessOpsLinuxLocal) @@ -592,7 +592,7 @@ def spawn_process(self, command, as_user=Users.CURRENT, user_password=None, outp def list2cmdline(self, args): - return " ".join([pipes.quote(a) or "''" for a in args]) + return " ".join([shlex.quote(a) or "''" for a in args]) _process_ops_classes.append(ProcessOpsLinuxRemote)