Skip to content

Commit

Permalink
behave: migrate from pipes to shlex
Browse files Browse the repository at this point in the history
Fedora 41 says: ModuleNotFoundError: No module named 'pipes'
  • Loading branch information
praiskup authored and xsuchy committed Sep 16, 2024
1 parent f84a628 commit 213b7cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions behave/testlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from contextlib import contextmanager
import io
import pipes
import shlex
import os
import subprocess
import sys
Expand All @@ -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):
Expand Down

0 comments on commit 213b7cc

Please sign in to comment.