From 213b7cc86ce29ef28fc6abe2cd0636d46a5e8758 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 12 Sep 2024 16:13:05 +0200 Subject: [PATCH] behave: migrate from pipes to shlex Fedora 41 says: ModuleNotFoundError: No module named 'pipes' --- behave/testlib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/behave/testlib.py b/behave/testlib.py index 3caad4a0e..267457b22 100644 --- a/behave/testlib.py +++ b/behave/testlib.py @@ -2,7 +2,7 @@ from contextlib import contextmanager import io -import pipes +import shlex import os import subprocess import sys @@ -23,7 +23,7 @@ def no_output(): def quoted_cmd(cmd): """ shell quoted cmd array as string """ - return " ".join(pipes.quote(arg) for arg in cmd) + return " ".join(shlex.quote(arg) for arg in cmd) def run(cmd):