From 94bcd86c9c64e0960f0b95bad28924c5fb5d5127 Mon Sep 17 00:00:00 2001 From: Jonathan Zielinski Date: Wed, 3 Dec 2025 14:59:09 +0100 Subject: [PATCH] Replace pipes.quote() with shlex pipes was removed in 3.13 --- executor/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/executor/__init__.py b/executor/__init__.py index dbe2eb7..cf3d304 100644 --- a/executor/__init__.py +++ b/executor/__init__.py @@ -44,7 +44,6 @@ import errno import logging import os -import pipes import pprint import shlex import signal @@ -1986,7 +1985,7 @@ def quote(*args): """ Quote a string or a sequence of strings to be used as command line argument(s). - This function is a simple wrapper around :func:`pipes.quote()` which + This function is a simple wrapper around :func:`shlex.quote()` which adds support for quoting sequences of strings (lists and tuples). For example the following calls are all equivalent:: @@ -2006,7 +2005,7 @@ def quote(*args): else: value = args[0] if not isinstance(value, (list, tuple)): - return pipes.quote(value) + return shlex.quote(value) return ' '.join(map(quote, value))